Author Topic: Change In JCL Parms For ARSADMIN In 9.5.0  (Read 3793 times)

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Change In JCL Parms For ARSADMIN In 9.5.0
« on: April 13, 2015, 06:16:22 PM »
I'm running the following on a z/OS 1.13 system.

Consider the following JCL which I use to unload the load from the ODF IVP:

//STEP1    EXEC PGM=ARSADMIN,REGION=0M,               
//   PARM=('/-V //DD:IN -u odadmin  -p blahblah')     
//STEPLIB  DD DISP=SHR,DSN=ARS.ARSV950.SARSLOAD       
//SYSPRINT DD SYSOUT=*                                 
//SYSOUT   DD SYSOUT=*                                 
//IN       DD *                                       
unload                                                 
-h                                                     
ARCH950                                               
-g                                                     
"Daily sales invoices"                                 
-L                                                     
5052-1-0-5FAA-0-0-5053                                 
/*                                                     
//ARSBIN     DD PATH='/usr/lpp/ars/V9R5M0/bin'         
//SYSPRINT   DD SYSOUT=*                               
//SYSOUT     DD SYSOUT=*                               
//STDERR     DD SYSOUT=*                               
//STDOUT     DD SYSOUT=*   


In V9.5 of CMOD the "-V" parm has been removed from the list of optional parms. 

Reference:  http://www-01.ibm.com/support/knowledgecenter/SSQHWE_9.5.0/com.ibm.ondemand.administeringzos.doc/dodad002.htm 

If I run this JCL on V9.5 I get the following in SYSOUT:

********************************* TOP OF DATA ********************************************
ARS1000I Usage: arsadmin  unload | store | retrieve | import | compress | decompress | icu
 Version:  9.5.0.1                                                             
******************************** BOTTOM OF DATA ******************************************


Okay ... I'll just put all of those parms in the PARM= field.

NO GOOD!

Now I get the following error:

IEF642I EXCESSIVE PARAMETER LENGTH IN THE PARM FIELD

IF you're on z/OS 2.1 the parm field has been expanded and z/OS can handle a parm field of that length.

IF you're on z/OS 1.13 or earlier the length of the parm field required to unload the ODF IVP is greater than the operating system can handle.


How will I circumvent this?

Well, of course I could unload from the admin client but that's the easy way out. 

I want to do this in batch.


What I'm going to do is via the admin client rename "Daily sales invoices" to just DSI for now.

Then I'll need to revisit the whole ODF IVP to look into changing "Daily sales invoices" to DSI...

...or look into getting my test system upgraded to z/OS V2.1. 

Ed





                         

« Last Edit: August 31, 2018, 08:20:42 AM by Justin Derrick »
#zOS #ODF

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Change In JCL Parms For ARSADMIN In 9.5.0
« Reply #1 on: April 14, 2015, 07:02:33 AM »
This is how I set up our unloads.  This might work for you as you should be under 100 chars.  We use unified log on so we don't need the user and pswd parms but I added them in from your example.

//L1      SET  AG='Daily sales invoices'                                 
//L2      SET  H=ARCH950                                       
//L3      SET  LOADID=5052-1-0-5FAA-0-0-5053
//*                                                           
//STEP1        EXEC PGM=ARSADMIN,                             
//             PARM='unload -h &H -Q -g "&AG" -L &LOADID -u odadmin  -p blahblah'     
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Re: Change In JCL Parms For ARSADMIN In 9.5.0
« Reply #2 on: April 14, 2015, 01:10:20 PM »
Nolan - slick!   

I had to specify Daily Sales Invoices like this with the extra quotes, but after that it was smooth sailing.

AG='"Daily sales invoices"'

Thanks!

Ed
« Last Edit: April 14, 2015, 01:25:07 PM by Ed_Arnold »
#zOS #ODF

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Re: Change In JCL Parms For ARSADMIN In 9.5.0
« Reply #3 on: April 14, 2015, 01:54:47 PM »
A bonus for those of us who love this type of thing:

ARSADMIN is now 64 bit enabled on z/OS.

If you add the following to the JCL above:

//CEEOPTS DD *
RPTOPTS(ON)
RPTSTG(ON)
/*


You'll see stuff like this in the SYSOUT:

64bit User HEAP statistics:                                       
  Initial size:                                                 2M
  Increment size:                                               1M
  Total heap storage used:                                1772512
  Suggested initial size:                                       2M
  Successful Get Heap requests:                              1187
  Successful Free Heap requests:                             1137
  Number of segments allocated:                                 0
  Number of segments freed:                                     0
31bit User HEAP statistics:                                       
  Initial size:                                             32768
  Increment size:                                           32768
  Total heap storage used (sugg. initial size):                 0
  Successful Get Heap requests:                                 0
  Successful Free Heap requests:                                0
  Number of segments allocated:                                 0
  Number of segments freed:                                     0
24bit User HEAP statistics:                                       
  Initial size:                                              4096
  Increment size:                                            4096
  Total heap storage used (sugg. initial size):                 0
  Successful Get Heap requests:                                 0
  Successful Free Heap requests:                                0
  Number of segments allocated:                                 0
  Number of segments freed:                                     0
#zOS #ODF

ibmarthin

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Change In JCL Parms For ARSADMIN In 9.5.0
« Reply #4 on: January 27, 2017, 05:33:32 AM »
I too missed that the -V parameter has gone..

So if you have input > 100 chars then this will work for arsadmin unload:

//* this is confirmed working 27.01.2017                   ***   
//* UnLoad LoadID from "OD SystemLog"                      ***   
//* -L = LoadID                                            ***   
//* -h = OnDemand system ODMT, ODMV or ODMN                ***     
//* -g = Name of Application Group                         ***     
//* -Q = force delete  if not found in system log          ***   
//************************************************************   
//ARSLOAD  EXEC PGM=BPXBATCH,REGION=0M TIME=NOLIMIT kun class=u   
//STDPARM  DD *                                                   
sh                                                               
 STEPLIB="SYS2.ONDEMAND.V9R5M0.SARSLOAD:                         
 SYS1.DB2G.DSNEXIT:                                               
 SYS1.DB2G.DSNLOAD:                                               
 SYS1.DB2G.DSNLOD2:                                               
 SYS1.ONDEMAND.ACIF.SAPKMOD1";                                   
 export STEPLIB;                                                 
 /usr/lpp/ars/V9R5M0L6/bin/arsadmin unload                       
 -u ODLOAD                                                       
 -h ODMT                                                         
 -Q                                                               
 -g BUDDIES                                                     
 -L 5523-3-0-3214FAA-20160711000000-20160711000000-5524 ;       
/*