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

Problem in submitting JCL thru Rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue May 04, 2010 6:58 pm
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

Global Moderator


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

PostPosted: Tue May 04, 2010 7:51 pm
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
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: 1353
Location: Israel

PostPosted: Tue May 04, 2010 8:51 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top