Page 1 of 1

split in-stream code to different rows

PostPosted: Tue Jun 20, 2017 2:45 am
by GeorgeQ
How to split in-stream code to different rows?

Please seed the jcl code below,I want change step01 to step02 but not work, please help.

Thanks!

//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE gdg.base GDG FORCE
/*


//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE gdg.base
GDG FORCE
/*

Re: split in-stream code to different rows

PostPosted: Tue Jun 20, 2017 4:07 am
by NicC
"not work" is meaningless - how did it not work? Anyway - read the manual for IDCAMS and it will tell you how to code a multi-line control statement.

Re: split in-stream code to different rows

PostPosted: Tue Jun 20, 2017 4:35 am
by GeorgeQ
Thank you very much, after follow you instruction to read the manual I figured out the problem :
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
 DELETE gdg.base -
 GDG FORCE
/*


edited to use code tags