can we give instream data in procedure
Answers were Sorted based on User's Feedback
Answer / abhijit18in2002
Instream data is the Paratmeter we pass through SYSIN
Catalog Procedure does'nt take Instream data
Example
//NEWPROC PROC
//ABCPGM EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=ABC.XYZ.DSP,DISP=SHR
//OUTDD1 DD DSN=PQR.XYZ.NOP,DISP=SHR
//SYSIN DD *
REPRO INDD(INDD1) –
OUTDD(OUTDD1)
/*
It will fail
Instead use
//SYSIN DD DSN=ABC.DFG.PARM,DISP=SHR
/*
Put the following in this data set ABC.DFG.PARM
REPRO INDD(INDD1) –
OUTDD(OUTDD1)
It will run fine
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / shriram supalwar dharmabad
No we cannot code instream data to procedure.
to overcome this
- code SYSIN DD DUMMY in the proc
- then override this from the JCL with instream data
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sush
we cwngive instream data in instream procedure.when we call
the procedure
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / chowdary
procedure are two types 1) instream and 2) catlog
we can give instream data up to 15 level may be like that
it might be possible,
if any one know correctly please post
| Is This Answer Correct ? | 2 Yes | 11 No |
A dd statement consists of 4 fields. Name them?
What is the difference between joblib and jcllib statements
What is the meaning of keyword in JCL? What is its opposite?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
what is the difference between static call and dynamic call?
what is the compile process of cobol program expalin with code
Can anyone tell me the syntax for printing two files at two different destinations in a single step?
what is JCLLIB and PROCLIB in jcl and their syntax
In which table PLAN is registered in ?
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
hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)
For what purpose steplib and joblib are used ?