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

What is the function of dd disp parameter?

0 Answers  


I have 255 procedures in a job, each procedure contain 2 steps.can we execute this job?

2 Answers  


I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?

4 Answers  


if we compile the cobol+ db2 program now ofter 5 years we need to compile again?

1 Answers   TCS,


Explain the function of //jcllib statement?

0 Answers  






A dd statement consists of 4 fields. Name them?

0 Answers  


Can a temporary dataset be converted to permanent dataset and vice-versa in the middle of a job ?

4 Answers   IBM,


If Name is NOT given for a JOB statement, then will it give error or installation will supply it for the JOB ?

1 Answers   IBM,


I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

0 Answers  


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


What parameters can be used to limit the number of records written to a sysout dataset?

0 Answers  


Categories