how to code instream data in procedure?

Answers were Sorted based on User's Feedback



how to code instream data in procedure?..

Answer / sruthi

By using control cards we can pass instream data to procs

Is This Answer Correct ?    2 Yes 0 No

how to code instream data in procedure?..

Answer / vaneesh khurana

We can't write
//SYSIN DD *
but i think we can code
//SYSIN DD DSN=SYSIN.PS,DISP=SHR

where SYSIN.PS is a 80 byte file containing SYSIN statements.

Not sure about it.

Is This Answer Correct ?    3 Yes 1 No

how to code instream data in procedure?..

Answer / mahesh

defined in the same job and also exicuted in the same job
starting with a proc operand
end with a pend statement

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....

3 Answers   RBS,


What is the purpose of dd * statement in jcl?

0 Answers  


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

0 Answers   HF, iNautix,


Which COND paramter will u use to execute the step only if the previous step does not execute

3 Answers   BoA, HSBC,






One dataset is creating in the step1 with LRECL of 133 and the same dataset is used in the next step in DISP=SHR mode, but while scanning the JCL the following error is thrwon. Please verify the below JCL $/SEPP030.PROVIDER DD DSN=Z1225BT.F5750PG9.F5910PRV.QC#A6868 //ERRORRPT DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, --ERRORRPT DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=&DISNCD,UNIT=&DELQ, -- DISP= (NEW,CATLG,DELETE),UNIT=DELQ, // SPACE=(TRK, (30,15),RLSE), // DCB=&DCB2 -- DCB= (PPG.METMODEL,BLKSIZE=0,LRECL=133,RECFM=FB) $/SEPP030.ERRORRPT DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT //SEPP040 EXEC PGM=FILEAID,COND= (0002,EQ,SEPP030) //SYSPRINT DD SYSOUT=* //SYSLIST DD SYSOUT=* //DD01 DD DSN=SYSCMN.PROD.CCLIB (F5910EP1),DISP=SHR $/SEPP040.DD01 DD DSN=Z1225BT.TEST.CCLIB (F5910EP1) E1 - DSS20791E - DATA SET 'Z1225BT.F5910EPP.ERRORRPT.AOUTPUT' HAS AN LRECL OF 133 COULD NOT BE OPENED BECAUSE THE CODED LRECL WAS 80. // DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, -- DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=SHR $/ DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT please find the error code in the above mentioned lines and please suggest me about the error and the solution for that.

3 Answers   Cognizant,


can anyone explain me about sort in jcl with inrec and outrec ?

2 Answers   HCL,


Explain about File Tailoring

1 Answers  


how to skip the steps in JCl

2 Answers   EDS,


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


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

4 Answers  


what is the control cards?

3 Answers  


Categories