View previous topic :: View next topic
|
Author |
Message |
srajendran
New User
Joined: 25 Sep 2006 Posts: 24
|
|
|
|
Hi,
I am coding a REXX utility that uses the ISP services to copy PDS members from one to another. I execute the rexx in a JCL as shown below.
Code: |
//TSOxxxx1 JOB 'TSOxxx','INSTALL',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*
//R010 EXEC PGM=IKJEFT01
//ISPPROF DD DISP=SHR,DSN=TSOxxxx.ISPF.SYSx.PROFILE
//ISPPLIB DD DISP=SHR,DSN=SYS2.ISPF.ISPPLIB
//ISPMLIB DD DISP=SHR,DSN=SYS2.ISPF.ISPMLIB
//ISPTLIB DD DISP=SHR,DSN=SYS2.ISPF.ISPTLIB
//ISPSLIB DD DISP=SHR,DSN=SYS2.ISPF.ISPSLIB
//SYSTSPRT DD SYSOUT=*
//SYSEXEC DD DISP=SHR,DSN=SYS2.OPS.TECHPROD.REXX
// DD DISP=SHR,DSN=TSOxxxx.WORKAREA
//SYSTSIN DD *
ISPSTART CMD(%AUTOINST 'RULELIB(TECHQUAL) ADDRULEAUTO(TESTSR)')
|
And when submitted, I get the below error in the spool. Can anyone please help me rectify this?
Code: |
READY
ISPSTART CMD(%AUTOINST 'RULELIB(TECHQUAL) ADDRULEAUTO(TESTSR)')
Invalid keyword ''RULELIB'
Invalid keyword '''
Either of rule library name or rexx library name should be specified
ISPD117
The initially invoked CLIST ended with a return code = 12
TSOxxxx.ISP06213.SPFLOG1.LIST has been kept.
READY
END |
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Check line 42 of your exec! |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Drop the quotes from the command?
I agree with prino, it looks like your clist handles the parm incorrectly. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2010 Location: USA
|
|
|
|
I bet in your “REXX utility” you are using
Code: |
Parse Arg Param ‘(‘ Value ‘)’ NextParam |
That’s why you get what your code is desined to do
If you expect something else then you must present your code here, or fix your code by yourself |
|
Back to top |
|
|
srajendran
New User
Joined: 25 Sep 2006 Posts: 24
|
|
|
|
Thanks all - Removing the quoted from the command worked.
Thanks again for your time everyone.
- Suresh. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2010 Location: USA
|
|
|
|
srajendran wrote: |
Thanks all - Removing the quoted from the command worked.
Thanks again for your time everyone.
- Suresh. |
Did you understand thar your problem has been caused by your own code which you are trying to hide from view at this forum, but seeking for help from readers who have no idea about your code?!!
It is the same as trying to fix a car by phone, just calling the workshop, without bringing the car for repair! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
Your exec is probably somewhat complicated and you do not wish people to see it.
Per Sergeyken's suggestion, in a situation like this, you can write a short 'hello world' version of your exec. If fact, that should be the first thing to write as a proof of concept to make sure your process works. You can share that code here without fear of someone stealing your work or of being ridiculed for it. |
|
Back to top |
|
|
|