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
 
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

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