can we give instream data in procedure

Answers were Sorted based on User's Feedback



can we give instream data in procedure ..

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

can we give instream data in procedure ..

Answer / sroul4

We can not!!

Is This Answer Correct ?    5 Yes 0 No

can we give instream data in procedure ..

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

can we give instream data in procedure ..

Answer / callee

Sush, we can't give instream data IN any kind of
procedures. We can give one only when we CALL proc.

Is This Answer Correct ?    2 Yes 0 No

can we give instream data in procedure ..

Answer / sush

we cwngive instream data in instream procedure.when we call
the procedure

Is This Answer Correct ?    1 Yes 3 No

can we give instream data in procedure ..

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

Post New Answer

More JCL Interview Questions

Explain concatenating datasets?

2 Answers   CTS,


i want to store 20 digits . how will u do it in cobol ?

0 Answers  


how to eliminate the duplicates in sorting

4 Answers   Fidelity,


What is notcat 2 - gs?

0 Answers  


How do you restart a step in JCL?

12 Answers   HSBC,






Explain how can return codes be tested before execution of a job step?

0 Answers  


What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

0 Answers   CGI, Verizon,


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

5 Answers   CitiGroup,


Explain about LMPUT-

1 Answers  


How do You skip a Step In JCL?

9 Answers   HTC,


common jcl abends??

2 Answers   ADP, Wipro,


Categories