Comment multiple lines in jcl



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

Comment multiple lines in jcl

Postby surime72 » Wed Mar 20, 2013 2:33 pm

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..
surime72
 
Posts: 107
Joined: Sun Oct 23, 2011 1:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Comment multiple lines in jcl

Postby steve-myers » Wed Mar 20, 2013 4:00 pm

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Comment multiple lines in jcl

Postby BillyBoyo » Wed Mar 20, 2013 4:25 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Comment multiple lines in jcl

Postby c62ap90 » Wed Mar 20, 2013 4:31 pm

//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'   
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Comment multiple lines in jcl

Postby Ed Goodman » Wed Mar 20, 2013 8:12 pm

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.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Comment multiple lines in jcl

Postby prino » Wed Mar 20, 2013 8:22 pm

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
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Comment multiple lines in jcl

Postby BillyBoyo » Wed Mar 20, 2013 10:16 pm

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 :-)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Comment multiple lines in jcl

Postby Anuj Dhawan » Fri Mar 22, 2013 5:10 pm

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:
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post