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
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
how to compare two datasets without using superce because output is limited to 133 bytes
What is the difference between the positional and keyword parameters? Give examples.
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
what JCL Procedures?
Can we use DISP=SHR in output file in JCL
how can you check if a file is empty using jcl?
Explain the purpose of dd * statement in jcl?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
How would you understand error(execution phase)?
Explain about LMFREE�free data set from its association with data ID
What are steplib and joblib?
How is the record format of an output dataset specified?
a dd statement has 2 types of parameters. Name them?