How do you code an instream data in a proc

other mainframe interview questions

Moderators: Anuj Dhawan, Moderator Group

Post Reply

How do you code an instream data in a proc

Post by vidhya » Tue Feb 14, 2006 5:22 pm

How do you code an instream data in a proc

User avatar
Posts: 17
Joined: Thu Feb 16, 2006 5:27 pm

Post by Rupesh.KOthari » Fri Feb 17, 2006 4:54 pm

Hi Vidya,
How do you code an instream data in a proc
Could you please explain in more details what is you exact requirement?
Thanks & Regards
Sun Shines Everywhere


instream data in a proc

Post by kvenkat_b4u » Sat Apr 22, 2006 3:31 pm

hi vidya,

if it is instream procedure u are not able to use
//sysin dd *

instead use below
//sysin dd dsn=partitioned data set,disp=shr or
//sysin dd dsn=pds(member),disp=shr

if it is a catalog proc,we can can use

//sysin dd *
value1 value2 ......valueN


i think this may helps u vidya

User avatar
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Mon Apr 24, 2006 10:49 am

You cannot use instream data inside a PROC. It is a rule. Instead, you code some dummy statement inside the PROC and override the particular step's DD statement from the JCL before you execute it.

Arr Bee
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others