IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass arguments in a ISPSTART command in BATCH


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srajendran

New User


Joined: 25 Sep 2006
Posts: 24

PostPosted: Fri Nov 06, 2020 11:19 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sat Nov 07, 2020 12:11 am
Reply with quote

Check line 42 of your exec!
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sat Nov 07, 2020 3:14 pm
Reply with quote

Drop the quotes from the command?
I agree with prino, it looks like your clist handles the parm incorrectly.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Sun Nov 08, 2020 8:15 pm
Reply with quote

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 36_2_51.gif 36_11_6.gif

If you expect something else then you must present your code here, or fix your code by yourself
Back to top
View user's profile Send private message
srajendran

New User


Joined: 25 Sep 2006
Posts: 24

PostPosted: Mon Nov 09, 2020 4:39 pm
Reply with quote

Thanks all - Removing the quoted from the command worked.

Thanks again for your time everyone.

- Suresh.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Mon Nov 09, 2020 6:54 pm
Reply with quote

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! icon_pray.gif 36_2_18.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2545
Location: Silicon Valley

PostPosted: Tue Nov 10, 2020 9:38 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts LTJ command CA Products 4
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top