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

In job processing, what happens in execution stage?

691


which utility is used to run a cobol-db2 program?

791


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5053


how JCL works?

784


What is the function of a dd statement?

698






What is the use of symbol // in jcl?

910


what is DSN parameter and DISP parameter is used for?

662


which utility is used to sort a file in jcl?

735


what happens in execution stage in job processing?

647


what is DD statement is used in JCL?

669


How can values be passed from the job stream to an executable program?

861


What is the function of //jcllib statement?

787


Is condition checking possible in jcl?

703


In sms datasets, what is the function of the dd avgrec keyword?

638


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2149