IN-STREAM DATA NOT ALLOWED IN PROC how can come out from
this problem
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vijay k
In the proc you have to code like this. Keep the INSTREAM
data in the parm card.
In the proc.
//sysin dd dsn= xyz.file(sortcpy),disp=shr
In the parm card, sortcpy should be like this.
sort fields=copy
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / hamed
code the sysin stmt as below
//sysin dd dummy
and override this from the step as below
in the JCL
//sysin.dd dsn= xyz
| Is This Answer Correct ? | 2 Yes | 7 No |
Answer / sucharita
But where shall I enter the data ?
The question was how to give instream-data, not how to use
sysin in proc.
Please someone clarify this..
| Is This Answer Correct ? | 0 Yes | 5 No |
Answer / pavan
can we use " SYSIN DD * " in a catalogued procedure.
| Is This Answer Correct ? | 2 Yes | 17 No |
How do you find which GDG is using which dataset?
Definition of COND parameter in JCL
How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.
a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file
Is it possible to left uncode disp?
i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
Describe the DD statement, its meaning, syntax and keywords?
mainframe questions like basic&depth
I need to compare two VSAm files. In input VSAM file some fields are updating and the updated feilds are coming into the output file. now i need to compare these two files with respect to a perticular field. Please suggest a suitable JCL code me.
How can a stopped job be started again?
What is the difference between a symbolic and an override in executing a PROC?
What is S322 abend ?