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
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What is notcat 2 - gs?
Explain how can values be passed from the job stream to an executable program?
what is SOC4 error?
In sms datasets, what is the function of the dd avgrec keyword?
what is a jcl?
which parameter is used to check the syntax of a jcl without executing it?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
what are the various stages of job processing?
How dummy is used in jcl?
Explain about LMQUERY�give a dialog information about a data set
how to do automated restart when a job abends?
what is the purpose of coding class parameter in job statement?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
What is NOTCAT ?