View previous topic :: View next topic
|
Author |
Message |
vasif
New User
Joined: 11 Feb 2008 Posts: 35 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
vasif
New User
Joined: 11 Feb 2008 Posts: 35 Location: Chennai
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|