IN-STREAM DATA NOT ALLOWED IN PROC how can come out from
this problem

Answer Posted / cj

Instream data cannot be given in catalogued procedures.
They can be coded in main jcl or instream procedures only.

So code a catalogued proc named PROC1 as given in eg. below:

//PROC1 PROC
//STEP1 EXEC PGM=progname (prog. that needs instream data)
//DATA1 DD DDNAME=SYSIN,DCB=(BLKSIZE=80,BUFNO=3)

In main JCL, execute this catalogued procedure, but
override the ddname DATA1 with your instream data. Code as
given in eg. below:

//STEPA EXEC PROC1
//DATA1.SYSIN DD *
{lines of data}
/*

I hope this helps.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a stopped job be started again?

898


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2422


Explain the function of the dd dcb keyword?

921


How to execute 2nd and 4th steps among 5 steps in jcl proc?

952


List the different jcl statements that are not permitted in the procedures?

822






Explain how can the attributes of one sms dataset be copied to another dataset?

928


Explain about LMFREE�free data set from its association with data ID

1268


what is the resolution for sb37 error

8307


how to do automated restart when a job abends?

1077


How would you understand error(execution phase)?

827


Explain dfsort utility?

987


which parameter is use to declare the name of dataset in dd statement?

959


Explain in DD statement what is the use of DCB parameter?

859


Are there any set of rules for the names of the steps used in a job? What are they?

790


What is the format of comment statement?

883