How to print data of sequential file to Spool..?

Answers were Sorted based on User's Feedback



How to print data of sequential file to Spool..?..

Answer / valmiki1980

//JOB CARD
//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=XXXXXXXXXXXXX,DISP=SHR
//SYSUT2 DD SYSOUT=* // THIS STEP WILL PRINT FILE TO SPOOL
//SYSPRINT DD SYSOUT=*
//SYSIN DD *

Is This Answer Correct ?    13 Yes 0 No

How to print data of sequential file to Spool..?..

Answer / krishna

//jobname JOB NOTIFY=&SYSUID
//STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
PRINT IDS("DATASET NAME") HEX/DUMP/CHAR
/*

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch

1 Answers   IBM,


What does a disposition of (MOD,DELETE,DELETE) mean ?

0 Answers  


In sms datasets, what is the function of the dd mgmtclas keyword?

0 Answers  


how you will define a temporary dataset in jcl?

1 Answers   IBM,


what are the various stages of job processing?

0 Answers   IBM,






The maximum number of in-stream procedure you can code in any JCL is ?

5 Answers  


what JCL Procedures?

0 Answers  


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


What does IEBGENER do?

10 Answers   BirlaSoft,


Can we change the LIMIT of GDG?

6 Answers   HCL,


Explain the function of job statement in jcl?

0 Answers  


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

2 Answers  


Categories