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
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
What parameter directs the output of the job log dataset?
Explain how can the submitting users racf authority be overridden in a job stream?
what are the types of abends that occur on job failure? And explain the possible causes of these
how to do automated restart when a job abends?
What is condition checking in jcl? Is this possible?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What do you understand by the term notcat 2 – gs?
List in order the hierarchical levels of jcl?
a dd statement has 2 types of parameters. Name them?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
Explain the function of //jcllib statement?
How can the disposition of sysout datasets be set for an entire jobstream?