Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 improvement to COND= in the latest version of MVS?

3 Answers  


wht r different types of sorts ?

1 Answers   L&T,


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


Please explain with syntax and an example, the Inrec fields and Outrec build in sort.

4 Answers   CTS, TCS,


Is there any command to check wether the ps file is in sorted order?

0 Answers   IBM,






How do you submit a JCL under CICS environment ?

5 Answers   Wipro,


Why we will create load module in PDS only, Why nt in PS?

2 Answers   TCS,


How we can code in a jcl to execute a job in a particular time and date without using any job shudular?. (Eg) i want to execute a particular job at 8 am on 01/01/2010.

2 Answers   Target,


how many types of sorts are there in jcl?

2 Answers   IBM,


i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


How do you skip a particular step in a proc/JOB?

5 Answers   CSC, CTS,






Categories