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
 

 

Problem in submitting JCL thru Rexx

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

New User


Joined: 11 Feb 2008
Posts: 35
Location: Chennai

PostPosted: Tue May 04, 2010 6:18 pm    Post subject: Problem in submitting JCL thru Rexx
Reply with quote

Hi,
i used the following code to submit jcl thru rexx:

Code:

QUEUE "//"jobName" JOB (SRCH),CLASS=T,MSGCLASS=T,NOTIFY=&SYSUID"
QUEUE "//SEARCH  EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'')"           
QUEUE "//NEWDD  DD DSN=USERID.PDS,DISP=SHR"               
QUEUE "//OUTDD  DD DSN="psName","                               
QUEUE "//       DISP=(NEW,CATLG,DELETE),"                       
QUEUE "//       DCB=(LRECL=134,BLKSIZE=1340),"                 
QUEUE "//       SPACE=(CYL,(5,5),RLSE),UNIT=SYSDA"             
QUEUE "//SYSIN  DD *"                                           
QUEUE line                                                     
QUEUE "/*"                                                     
QUEUE "//*"                                                     
QUEUE "$$"                                                     
"SUBMIT * END($$)"                                             


But i get the following and strangely the job number is blanks SRC00001(blanks) SUBMITTED. I am not able to find any jobs in spool with prefix SRC00001. Plz help out.

IKJ56274A ENTER INPUT JOB STREAM:
IKJ56250I JOB SRC00001( ) SUBMITTED
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue May 04, 2010 6:58 pm    Post subject:
Reply with quote

If I were you, I would learn about ISPF file tailoring and then just submit the generated JCL rather than farting about with using the INTRDR. After all, that is what file tailoring was designed for, building and submitting a batch job.

Where have you allocated the INTRDR, where are the EXECIO instruction(s) to write the queue to the INTRDR.

Search the forum, there are lots of examples.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue May 04, 2010 7:51 pm    Post subject: Reply to: Problem in submitting JCL thru Rexx
Reply with quote

I don't know, it works OK for me.

Do you ever encounter issues with the SUBMIT command? You might try writing the Queued JCL records into a dataset and then looking at that content to see if you see anything. Then, you can always further test by submitting that same dataset.
Back to top
View user's profile Send private message
vasif

New User


Joined: 11 Feb 2008
Posts: 35
Location: Chennai

PostPosted: Tue May 04, 2010 8:48 pm    Post subject:
Reply with quote

Hi,
I got to know the problem, there was an error deriving the jobname variable and was giving invalid names.

Corrected it.

Well thanks for your time.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Tue May 04, 2010 8:51 pm    Post subject: Reply to: Problem in submitting JCL thru Rexx
Reply with quote

It works for me too (after I modified the JOB to our standard).

By using ISPF file tailoring, you can EDIT the JCL instead of submitting it and do a manual submit.
Once you are sure it works, you need only to replace the EDIT by a SUBMIT.

Looking at the code you provided, you need only basic knowledge of file tailoring, it shouldn't be too difficult.
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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