Author Topic: I can not delete a document using the unload command  (Read 5304 times)

jose.arotinco

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
I can not delete a document using the unload command
« on: October 05, 2011, 01:58:06 PM »
Hello everyone,

Hope you can help me, i can't delete reports using the unload command.
I have a server in windows 2008 32bits CMOD 8.4.1.7 and I can not delete a document using the unload command.

when executing the command I get the following:

C:\IBM\OnDemand for WinNT\bin>arsadmin unload -h localhost -u admin -p password -g CAL073 -L 5011-1-0-2FAA-13819-13819

Usage: arsadmin unload [options]
        Version:  8.4.1.7
        unload Unload a LoadId from OnDemand
                -D <pct> Threshold of load being held before reloading
                   (defaults to 0% - not reloaded)
                -g <name> Application Group Name
                -h <od_inst> OnDemand library server or instance name (same as -I)
                -I <od_inst> OnDemand library server or instance name (same as -h)
                -L <load_id> LoadId to delete from OnDemand
                -N Skip looking up the LoadId in System Log
                -p <passwd> OnDemand User Login Password
                -Q Continue if unable to find LoadId in System Log
                -u <userid> OnDemand User Login Name
                -1 <trace_file> Fully-qualified trace file name
                -2 <level> Trace level number
                           The values are additive.  (Default: 3)
                           1: Errors
                           2: Warnings
                           4: Info
                           8: Flow

In the System Log folder look for the num Msg: 85 and there is no record of the unload.

Why I can not delete reports? I did a migration from 8.4.0 to 8.4.1.7 CMOD. The migration process was successful, use the steps in the following link: https://www-304.ibm.com/support/docview.wss?rs=0&uid=swg21438765

Regards,

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: I can not delete a document using the unload command
« Reply #1 on: October 05, 2011, 10:18:48 PM »
Hello Jose,

it's strange... the command you give us is correct. No doubt about it. I use it very often.

Now what could be wrong?

1) Quite impossible, but who knows... CMOD 8.4.1.7 on Windows has a bug with the arsadmin unload command.

2) I've seen sometimes the following, someone write the command in Word, then Word in a very subtle way change the '-' in some other '-' which are no more compatible with the command line. And then if you do a copy paste of the command... you think that the command is correct, but in fact the '-' are wrong.
Then arsadmin tries to parse the command line, and doesn't find the correct option.
My advice would be (if that is the case I'm describing here...) that you type the whole command again, no copy-paste.

3) Sometimes, the option -h and -I are interchangeable. Sometimes, it's one or the other, but not both. Have you tried to use the option -I instead of -h if it works?

4) ... I have no idea what could be another possible problem!

Maybe somebody else has an idea...

Sincerely yours,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
Re: I can not delete a document using the unload command
« Reply #2 on: October 06, 2011, 06:42:24 AM »
I'm a z guy, but the unload command I use to unload the IVP data for ODF 8.5 is this:

//STEP1    EXEC PGM=ARSADMIN,REGION=0M,         
//   PARM=('/-V //DD:IN -u odadmin  -p y2metoo')
//STEPLIB  DD DISP=SHR,DSN=ARS.ARSV850.SARSLOAD 
//SYSPRINT DD SYSOUT=*                           
//SYSOUT   DD SYSOUT=*                           
//IN       DD *                                 
unload                                           
-h                                               
ARCH850                                         
-g                                               
"Daily sales invoices"                           
-L                                               
5080-1-0-1FAA-0-0                               
/*                                               

It looks exactly the same as yours, but I do have double quotes around the -g parm...yes because there are blanks in there, but try the double quotes anyway.

Ed
#zOS #ODF

jose.arotinco

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: I can not delete a document using the unload command
« Reply #3 on: October 06, 2011, 08:06:35 AM »

Thank you very much Alesasandro, already solves it, now i type the command directly in the window and in addition add the option -Q and if I work perfectly.

Regards,

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: I can not delete a document using the unload command
« Reply #4 on: October 07, 2011, 05:52:54 AM »
Is your default instance name 'archive'?

If you've changed the default instance name, you must use the -I option with the name of the instance.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: I can not delete a document using the unload command
« Reply #5 on: October 07, 2011, 11:18:58 AM »

Thank you very much Alesasandro, already solves it, now i type the command directly in the window and in addition add the option -Q and if I work perfectly.


Hello Jose,

so that was my solution option 2?? :-) that's the first thing I've thought!! :-) I've seen too many times!!!

An advice... NEVER use WORD for that... Wordpad or Notepad is WAAYYYyy better ! :-) don't have that kind of surprise!!

Sincerely yours,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

jose.arotinco

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: I can not delete a document using the unload command
« Reply #6 on: October 11, 2011, 09:08:33 AM »
Hi Alessandro,

Yes, the solution was option 2!!