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

I have a File that has duplicate records. I need only those records that occur more than thrice.

3 Answers  


how to split a file

4 Answers   IBM,


If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ?

2 Answers   IBM,


Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?

6 Answers  


What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?

2 Answers  






How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.

3 Answers   IBM,


What is RESTART? How is it invoked?

8 Answers   HSBC,


I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.

1 Answers  


How can we see data in TEMPARARY DATA SET in JCL ?

7 Answers   CSC, Polaris,


How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?

5 Answers   IBM,


how to resolve the soc4 error?

5 Answers   ITC Infotech,


Matching Logic in Jcl not in cobol.Could any one please answer this question

0 Answers  


Categories