split in-stream code to different rows



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

split in-stream code to different rows

Postby GeorgeQ » Tue Jun 20, 2017 2:45 am

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
/*
GeorgeQ
 
Posts: 27
Joined: Fri Jun 16, 2017 1:08 am
Has thanked: 11 times
Been thanked: 0 time

Re: split in-stream code to different rows

 

Re: split in-stream code to different rows

Postby NicC » Tue Jun 20, 2017 4:07 am

"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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

These users thanked the author NicC for the post:
GeorgeQ (Tue Jun 20, 2017 4:35 am)
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: split in-stream code to different rows

Postby GeorgeQ » Tue Jun 20, 2017 4:35 am

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
GeorgeQ
 
Posts: 27
Joined: Fri Jun 16, 2017 1:08 am
Has thanked: 11 times
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post