Page 1 of 1

Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 2:33 pm
by surime72
How to comment multiple lines in jcl...
for ex there is
step  AV4515JG EXEC AV4515JG,JOB=AV10JG,
         CC='JG',
         DB='0A',QUAL='W#W0HW',PROD='TEST'


below this there is lot s of step i need to comment all below steps..

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 4:00 pm
by steve-myers
surime72 wrote:How to comment multiple lines in jcl...
for ex there is
step  AV4515JG EXEC AV4515JG,JOB=AV10JG,
         CC='JG',
         DB='0A',QUAL='W#W0HW',PROD='TEST'


below this there is lot s of step i need to comment all below steps..
This is not JCL. Period. End of story.

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 4:25 pm
by BillyBoyo
Use >> in the editor to make four space available at the beginning of each line. Watch out for any "ERR"s. Change blanks in columns 1 to 4 to "//* ".

And yes, that's not JCL. I assume you either felt some need to represent it like that, or you have something "unusual" which "pre-processes" JCL.

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 4:31 pm
by c62ap90
//AV4515JG EXEC AV4515JG,JOB=AV10JG,                         
//         CC='JG',                                           
//         DB='0A',QUAL='W#W0HW',PROD='TEST'                 
//* THIS IS A COMMENT LINE; BEGINS WITH SLASH, SLASH, ASTERISK
//*
//* THE FOLLOWING LINES ARE COMMENTS TOO
//*AV4515JG EXEC AV4515JG,JOB=AV10JG,                         
//*         CC='JG',                                           
//*         DB='0A',QUAL='W#W0HW',PROD='TEST'   

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 8:12 pm
by Ed Goodman
Just to nitpick, there are some JES commands that look exactly like comments. You'll see things like
//*SYSTEM=SY7

As part of a larger line above.

It's the lack of a space that tips you off.

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 8:22 pm
by prino
Just bracket, it your dealing with actual steps, the steps with impossible IF..ENDIF statements... :mrgreen:

//   IF RC < 0 THEN
//STEP exec whatever
//STEP exec more
//   ENDIF

Re: Comment multiple lines in jcl

PostPosted: Wed Mar 20, 2013 10:16 pm
by BillyBoyo
Ed Goodman wrote:Just to nitpick, there are some JES commands that look exactly like comments. You'll see things like
//*SYSTEM=SY7

As part of a larger line above.

It's the lack of a space that tips you off.


And why I always leave a space, so I don't "accidently" concoct something JES thinks I want it to execute :-)

Re: Comment multiple lines in jcl

PostPosted: Fri Mar 22, 2013 5:10 pm
by Anuj Dhawan
surime72 wrote:...below this there is lot s of step i need to comment all below steps..
Then possibly show us the "below this" code rather than what you show... :roll: