shinjini_t
New User
Joined: 11 May 2005 Posts: 14 Location: Bangalore, India
|
|
|
|
[b]In Stream Procedure:[/b]
This proc is coded inside the executing job.
It must begin with a PROC statement and end with a PEND statement
It should be coded before the first EXEC statement invoking the instream procedure
Example of an In stream Procedure:
000100 //INF62441 JOB (AMLAN),NOTIFY=INF6244,CLASS=A
000210 //PROC1 PROC
000220 //STEP2 EXEC PGM=IEFBR14
000300 //DD1 DD DSN=&&TEMP,SPACE=(TRK,(1,1)),
000400 // DCB=(RECFM=FB,BLKSIZE=800,LRECL=80),
000401 // VOL=SER=INUSR3,
000500 // DISP=(NEW,KEEP),UNIT=SYSDA
000600 // PEND
000610 //STEP1 EXEC PROC1
000700 /*
[b]Catalogued Procedure:[/b]-It must begin with a PROC statement and must not contain a PEND statement
-It must be cataloged in order to access it that is it must be a member of a PDS.
Cataloged procedure:
000200 //MYPROC PROC
000210 //STEP2 EXEC PGM=IEFBR14
000220 //DD1 DD DSN=&&TEMP,SPACE=(TRK,(1,1)),
000230 // DCB=(RECFM=FB,BLKSIZE=800,LRECL=80),VOL=SER=INUSR3,
000240 // DISP=(NEW,KEEP),UNIT=SYSDA
Cataloged procedure called through a JCL
000100 //INF62441 JOB (AMLAN),NOTIFY=INF6244,CLASS=A
000110 //LIB1 JCLLIB ORDER=(INF6244.JCL.SOURCE)
000260 //STEP1 EXEC MYPROC |
|