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 it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx

7 Answers  


What is the use of symbol // in jcl?

0 Answers  


What is the difference between Sysin,Sysout,Sysdbout and Sysudump?

3 Answers  


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


what is fixed length and variable length and difference between them

1 Answers   CGI, Wipro,






01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

1 Answers  


Can I send output of job to my remote device careerride123?

0 Answers  


There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.

1 Answers   IBM,


hi friends........if u know syntax of IEBEDIT IN JCL

2 Answers  


what is alternate index?

1 Answers  


Can comments be specified at the very beginning of a jobcard? Will the JCL execute?

3 Answers  


We have two PS files,want to compare those files and put the duplicate records in one file. Input file 1 contains(1,2,4,9,10) Input file 2 contains (1,4,5,11,12,14,16). Help me with jcl.

6 Answers  


Categories