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 |
Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?
How to change default PROCLIB?
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset
The maximum number of steps in a job?
Describe the various parameters utilized in the creation of a gdg?
How do you pass parameters to the program as the job is being executed ?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
what is check pending option
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What is the purpose of include statement in a JCL?
how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?