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 many types of parameters are used in JCL and what are mandatory parameters of JOB statement.
//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES
How can u know the current date using jcl?
what is A-MODE and R-MODE?
How can I override a dsn that is contained in a proc called by another proc? I need to do the override in the calling JCL.
how to create a member or sequential dataset through tso command??
what's the significance of freespace(0 0) and freespace(100 100)
How is a GDG base created?
What is the maximum length of a single line of jcl?
What are the difference between jcl and jes?
If job is submitted with typerun = hold then how can we submit the same job?
How do you submit a job for execution?