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
In job processing, what happens in execution stage?
which utility is used to run a cobol-db2 program?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
how JCL works?
What is the function of a dd statement?
What is the use of symbol // in jcl?
what is DSN parameter and DISP parameter is used for?
which utility is used to sort a file in jcl?
what happens in execution stage in job processing?
what is DD statement is used in JCL?
How can values be passed from the job stream to an executable program?
What is the function of //jcllib statement?
Is condition checking possible in jcl?
In sms datasets, what is the function of the dd avgrec keyword?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?