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
 

 

Explain about Instream procedures and cataloged procdures

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sararaju

New User


Joined: 04 May 2005
Posts: 25

PostPosted: Wed May 11, 2005 12:12 pm    Post subject: Explain about Instream procedures and cataloged procdures
Reply with quote

Can any one explain briefly about instream procedures and cataloged procdures?

and wht are the advantages of symbolic parameter?
Back to top
View user's profile Send private message

gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Wed May 11, 2005 12:46 pm    Post subject:
Reply with quote

procedure: "a group of jcl statements assigns some name "
uses of procedures : reusability.

catalog procedures: catalog procedures r stored in members of PDS. A catalog procedure can not have PEND statement at last.they remain untill
they r deleted.

instream procedure : instream procedure exits in the jcl itself.they must
start with PROC and end with PEND.they will remain during the execution
of the job.
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sat May 14, 2005 3:45 pm    Post subject: Re: Explain about Instream procedures and cataloged procdure
Reply with quote

Cataloged Procedure : The proc that have potential use by several users are often placed in a in a PDS (need to be specified by JCLLIB ORDER statement) or system library.It begins with PROC statement and followed by JCL statements that constitute the procedure.

i.e JCL A uses proc M and the same proc M is used by the JCL B then keep the proc in the common library and specify that lib in the main JCL.
We supply overrides through JCL i.e symbolic parameters.


In-stream Procedure : In-stream procedure starts with a PROC statement and end with PEND statement. Instream procedure's can be included after the JOB statement but before the first EXEC statement.Up to 15 in-stream procedures are allowed in a JOB, with each in-stream procedure allowed to be executed several times.
Back to top
View user's profile Send private message
shinjini_t

New User


Joined: 11 May 2005
Posts: 14
Location: Bangalore, India

PostPosted: Mon May 16, 2005 10:20 am    Post subject: Re: Explain about Instream procedures and cataloged procdure
Reply with quote

[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
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm
No new posts Can someone explain me this JCL line ... PeterHolland JCL & VSAM 9 Sat Dec 12, 2015 7:22 am
No new posts IMS DB databases with db2LUW stored p... HABBIE IMS DB/DC 0 Wed Aug 12, 2015 5:00 pm
No new posts native db2 Stored procedures on Mainf... HABBIE DB2 2 Tue Aug 04, 2015 1:54 pm
No new posts Native stored procedures on IMS DB HABBIE IMS DB/DC 3 Wed Jul 29, 2015 10:41 am


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