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 can a stopped job be started again?
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?
Explain the function of the dd dcb keyword?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
List the different jcl statements that are not permitted in the procedures?
Explain how can the attributes of one sms dataset be copied to another dataset?
Explain about LMFREE�free data set from its association with data ID
what is the resolution for sb37 error
how to do automated restart when a job abends?
How would you understand error(execution phase)?
Explain dfsort utility?
which parameter is use to declare the name of dataset in dd statement?
Explain in DD statement what is the use of DCB parameter?
Are there any set of rules for the names of the steps used in a job? What are they?
What is the format of comment statement?