Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 1243
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us