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 |
mainframe questions like basic&depth
What is order of searching of the libraries in a JCL?
GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?
How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?
what is the COND=EVEN ? Can anyone give me an example to explain the usage.
Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?
can i sort packed decimal if i can tell the syntax
I had 100 steps in jcl i want to execute first 10 steps only?
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
What are three major types of JCL statements? What are their functions?
What is the purpose of dd dummy statement?
01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250