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
What is jcl in mainframe, and how many types of jcl statements are there for a job?
what is JCL?
Are there any set of rules for the names of the steps used in a job? What are they?
For what purpose steplib and joblib are used ?
Define concatenating?
What is NOTCAT ?
what is use of dsn parameter in dd statement?
What are the parameters that are used in creating a gdg?
Explain the job statement in jcl?
When space is allocated for an output dataset, what units can be used?
In job processing, what happens in conversion stage?
What are steplib and joblib?
Is their any limit for data sets?
Is it possible to code instream data in a PROC?
what is the purpose of coding class parameter in job statement?