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: 1226
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
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 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
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm


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