can we give instream data in procedure

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is concatenating?

633


How can a stopped job be started again?

707


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5060


What is the difference between run mode and addressing mode?

631


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

617






What are steplib and joblib? What for they are used?

690


Explain how can a jobs execution priority be modified?

736


whats the diff bw the evaluate also and and?

1850


What are the 2 types of parameters in dd statement?

644


When output dataset space is required, what quantity categories are used?

824


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1748


Explain the purpose of the dd keylen parameter?

670


Suppose I have five jobs to do. But I want to hold one?

654


What is Cataloged Procedures?

711


what are JCLLIB and STEPLIB in JCL?

672