Page 1 of 1

Using a SYSIN DD * inside a catalogued PROC

PostPosted: Thu Dec 15, 2011 10:09 pm
by javivi
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

Re: Using a SYSIN DD * inside a catalogued PROC

PostPosted: Thu Dec 15, 2011 10:19 pm
by BillyBoyo
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

Re: Using a SYSIN DD * inside a catalogued PROC

PostPosted: Thu Dec 15, 2011 11:57 pm
by NicC
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)