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

Submitting JCL using REXX giving error though JCL is OK


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jaydeb

New User


Joined: 17 Oct 2005
Posts: 9
Location: Pune

PostPosted: Tue Aug 10, 2010 1:31 pm
Reply with quote

Hi All,

I am trying with a simple REXX which pulls a dataset name on disk and submits a jcl to bring it on tape.
Submitting the JCL separately is working fine but when I am trying to submit the same jcl using REXX, its giving error as below:

DATA SET UTILITY - GENERATE
IEB319I INVALID SYSPRINT/SYSIN BLOCKSIZE

The rexx code is as below:

QUEUE "//CPYTAPE1 JOB (),'COPY',CLASS=b,MSGCLASS=a,"
QUEUE "// REGION=0M,NOTIFY=&SYSUID"
QUEUE "//STEP1 EXEC PGM=IEBGENER"
QUEUE "//SYSOUT DD SYSOUT=*"
QUEUE "//SYSPRINT DD SYSOUT=*"
QUEUE "//SYSUT1 DD DSN="DDIN",DISP=SHR"
QUEUE "//SYSUT2 DD DSN="DDIN".NEW,"
QUEUE "// DISP=(NEW,CATLG,DELETE),"
QUEUE "// DATACLAS=MEDIUM,"
QUEUE "// UNIT=CART"
QUEUE "//SYSIN DD *"

"ALLOC F(JCL) SYSOUT WRITER(INTRDR)"
"EXECIO" QUEUED() "DISKW JCL (FINIS"
"FREE F(JCL)"


DDIN is the dataset name I am pulling using rexx.

Could anybody help me with this.

Warm Regards,
Jaydeb
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 10, 2010 1:36 pm
Reply with quote

I would use
Code:
"ALLOC F(JCL) SYSOUT WRITER(INTRDR) RECFM(F B) LRECL(80)"
Also, you have lower case characters in the jobcard - use upper case.

Why not use SYSIN DD DUMMY unless you are using SYSIN statements ?
Back to top
View user's profile Send private message
jaydeb

New User


Joined: 17 Oct 2005
Posts: 9
Location: Pune

PostPosted: Tue Aug 10, 2010 1:49 pm
Reply with quote

Bravo !!!!
Its working after adding LRECL.
Thanks a ton.


Regards,
Jaydeb.
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
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 Error when install DB2 DB2 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top