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

//step#3 exec pgm = hkbc762 what is wrong with the syntax?

3 Answers  


Differentiate between addressing mode and run mode.

0 Answers  


Explain about Specifying compiler options in the PROCESS (CBL) statement

1 Answers  


Explain the purpose of dd * statement in jcl?

0 Answers  


On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?

2 Answers  






Is acct parameter mandatory?

0 Answers  


How is a new GDG coded?

2 Answers  


what are the statements that are not valid to be included in an include statement?

0 Answers   IBM,


what is full form of AIX

3 Answers   Accenture,


I have Job A and Job B. I want to trigger Job B from Job A. Please advise.

2 Answers   Wipro,


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

3 Answers   IBM,


In how ways you can pass the data from Jcl to cobol ?

3 Answers   Cap Gemini, IBM,


Categories