IN-STREAM DATA NOT ALLOWED IN PROC how can come out from
this problem

Answers were Sorted based on User's Feedback



IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

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

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

Answer / raja

No you cannot

Is This Answer Correct ?    9 Yes 0 No

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

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

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

Answer / vengat

We can Use Instream in Catalog Procedure.

Is This Answer Correct ?    1 Yes 2 No

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

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

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

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

IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem..

Answer / pavan

can we use " SYSIN DD * " in a catalogued procedure.

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More JCL Interview Questions

Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


How to change default PROCLIB?

1 Answers  


i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl

1 Answers  


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

3 Answers   Cognizant,


The maximum number of steps in a job?

4 Answers  






Describe the various parameters utilized in the creation of a gdg?

0 Answers  


How do you pass parameters to the program as the job is being executed ?

2 Answers  


Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?  

1 Answers   TCS,


what is check pending option

1 Answers   Fujitsu,


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  


What is the purpose of include statement in a JCL?

2 Answers  


how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?

1 Answers  


Categories