intream data

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

intream data

Postby vanzhere » Mon Sep 20, 2010 7:32 pm

Is it possible to code an instream data in a PROC? If not, why?
Posts: 7
Joined: Thu Jun 17, 2010 11:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: intream data


Re: intream data

Postby Robert Sample » Mon Sep 20, 2010 7:40 pm

Question 1: No.

Question 2: Because the JCL Language Reference manual says so:
12.2.5 Location in the JCL

A DD * statement begins an in-stream data set.

In-stream Data for Cataloged or In-stream Procedures

A cataloged or in-stream procedure cannot contain a DD * statement. When you call a procedure, you can add input stream data to a procedure step by placing in the calling step one or more DD * or DD DATA statements, each followed by data.
Robert Sample
Global moderator
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: intream data

Postby NicC » Mon Sep 20, 2010 11:36 pm

Why would you want static data in your procedure? The correct place for this is in a dataset which is why JCL procedures support datasets but not instream data.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: intream data

Postby steve-myers » Tue Sep 21, 2010 7:01 am

Think about what is trying to be accomplished. An in-stream PROC is a way to prepare an real PROC, either for JCLLIB or for a system PROCLIB. JES2 does not have access to these procedures. OK, in a sense that statement is not true, since the converter, running in the JES2 address space does access them, but JES2 does not really know very much about this (though it does save the save the internal text created from the JCL). Since JES2 does not see in-stream data from a PROCLIB or JCLLIB procedure, why should it allow in-stream data in an in-stream PROC?
Global moderator
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Return to JCL


  • Related topics
    Last post