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
 

 

Submitting JCL using REXX giving error though JCL is OK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Submitting JCL using REXX giving error though JCL is OK
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 10, 2010 1:36 pm    Post subject:
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    Post subject: Reply to: Submitting JCL using REXX giving error though JCL
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    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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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