Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Issue in executing a JCL via REXX pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Fri Oct 11, 2013 7:12 pm    Post subject: Issue in executing a JCL via REXX pgm
Reply with quote

Hi All,

I am new to REXX programming and trying to SUBMIT a JCL via REXX pgm.

The JCL needs to get the input dynamically from the REXX pgm, so i have used SKELETON TAILORING approach to execute the JCL.

The steps i followed,
1.Got the Inputs from the USER. (No issues in getting the inputs)
2.Validated the inputs(No issues in validation the inputs)
3.Calling the JCL(here Issue is happening)
a. Here i have created a PDS for the SKELETON JCL and created the member and used '&' as a Qualifier to extract input from REXX pgm.
b. I have included the SKELETION LIBRARY in my program as well
Please find the below snipet.

Quote:
ADDRESS ISPEXEC
"LIBDEF ISPSLIB DATASET ID('TEST.SKELE')"
"FTOPEN TEMP"
SKUSR=USERID() /*this is used a &SKUSER in SKELETION JCL*/
"FTINCL JCL" /* this is the name of the member in TEST.SKELE PDS */
"FTCLOSE"
"VGET ZTEMPF"
"SUBMIT '"ZTEMPF"'"


Once i try to execute the REXX Pgm i am directly comming out of the SESSOIN means i am getting
" Invalid SERVICE NAME"
the Severe error listing is
Application : ISR
Function : COMMAND EX
SERVICE : SUBMIT
ERROR MESSAGE ID ISPS102

I am not able to find the error, please suggest me what is the mistake i have done here and thanks in advance for the time.
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1754
Location: Bloomington, IL

PostPosted: Fri Oct 11, 2013 7:31 pm    Post subject:
Reply with quote

Your mistake is in executing ADDRESS ISPEXEC on a line by itself. This causes all future strings to be sent to ISPF. SUBMIT is not an ISPF service, so sending that string to ISPF causes the error. Execute ADDRESS TSO prior to the SUBMIT.
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Fri Oct 11, 2013 7:37 pm    Post subject:
Reply with quote

Thanks a Ton Mr.Akatsukami. My job job ran successfully.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us