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 |
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
how to allocate a dynamic dataset in jcl ?
If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how it can be coded in JCL/
Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I want to change the condition with out changing the jcl. Please provide with a sample code.
what is SOC4 error?
Is it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx
How many types we can give input to JCL
How can you trap abends in the JCL?
I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter
Explain how can a stopped job be started again?
once we submitted the job to the operating system, how can we cancel the job before execution?
Can you delete the GDG base without deleting GDG generations ?