Using a SYSIN DD * inside a catalogued PROC



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Using a SYSIN DD * inside a catalogued PROC

Postby javivi » Thu Dec 15, 2011 10:09 pm

Hi

It is possible to use the SYSIN DD * inside a catalogued PROC ?

Inside the proc I have:
BORRA001 EXEC PGM=IDCAMS,COND=(0,NE)
SYSPRINT DD SYSOUT=A
SYSIN DD *
DEL FILE1.PROC001.SORTOUT
SET MAXCC=0
SET LASTCC=0

5 XXBORRA001 EXEC PGM=IDCAMS,COND=(0,NE)
6 XXSYSPRINT DD SYSOUT=A
7 XXSYSIN DD *
8 DEL FILE1.PROC001.SORTOUT
9 SET MAXCC=0
10 SET LASTCC=0

I'm receiving the next error from the jes:
7 IEFC601I INVALID JCL STATEMENT
8 IEFC601I INVALID JCL STATEMENT
9 IEFC601I INVALID JCL STATEMENT
10 IEFC601I INVALID JCL STATEMENT
13 IEFC601I INVALID JCL STATEMENT

tHANKS
javivi
 
Posts: 47
Joined: Fri Jan 21, 2011 2:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Using a SYSIN DD * inside a catalogued PROC

Postby BillyBoyo » Thu Dec 15, 2011 10:19 pm

You can't, or not yet, have DD * in a catalogued procedure.

You can point SYSIN to a dataset, and the dataset can be a PDS with a member-name specified within parenthesis.

//SYSIN DD DSN=my.pdswith.control.cards(mycards),disp=shr


You can also use overrides to get the data in:

//stepnm.SYSIN DD *
card 1
card 2
etc
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Using a SYSIN DD * inside a catalogued PROC

Postby NicC » Thu Dec 15, 2011 11:57 pm

Obviuosly you cannot - otherwise you would not have had JCL statement errors. And, obviously, you did not check the manual - or search the forum. (Both of which should have beeb done before posting)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post