Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Comment multiple lines in JCL
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 12:22 pm    Post subject: Comment multiple lines in JCL
Reply with quote

Could anyone please let me know how to comment multiple lines in JCL..
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 11, 2007 12:26 pm    Post subject:
Reply with quote

Hello,

Place //* in pos 1-3 of each statement that is to be a comment.
Back to top
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 12:31 pm    Post subject: Comment multiple lines
Reply with quote

thanks a lot dick....

but is there possibility of commenting multiple lines instead of commenting each and every line?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 11, 2007 12:34 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

Not that i'm aware of. It's been that way for a long time.
Back to top
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 12:36 pm    Post subject: comment multiple lines
Reply with quote

Could anyone please let me know is there any possibility of commenting multiple lines instead of commenting each and every line?
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 11, 2007 1:09 pm    Post subject:
Reply with quote

Hi Pavithra,

Please read Syntax Rule Of JCL Statements..

When system Finds // , It always checks for 3rd position (Coding command or statement or paramenter is Optional).

Even Forth position also for JES3 Statement if you included * .

This is how system finds difference in statements.

As yet, There is no command to get rid of this (as I believe & If so It will become a New research in Mainframe icon_lol.gif ).

Thanks & Regards
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Thu Oct 11, 2007 1:27 pm    Post subject:
Reply with quote

JCL should be commented as you would any programming language. The comments statement contains //* in columns 1 to 3, with the remaining columns containing any desired comments.
They can be placed before or after any JCL statements following the JOB statement to help document the JCL. Comments can also be coded on any JCL statement by leaving a blank field after the operand field.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Oct 11, 2007 1:31 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

Quote:
Could anyone please let me know is there any possibility of commenting multiple lines instead of commenting each and every line?


what was wrong in Dick's reply that left You not satisfied and made You ask again ???

WHAT ABOUT READING THE MANUAL
THE LINK IS AT THE TOP OF THE PAGE "MANUALS"
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Oct 11, 2007 2:01 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

Quote:
Could anyone please let me know is there any possibility of commenting multiple lines instead of commenting each and every line?


First label the lines that you want to comment ( say .A and .B)

Code:
 .A     //S1    EXEC  PGM=SORT       
 000004 //SYSOUT    DD  SYSOUT=*     
 .B     //SORTIN DD *                 


Then issue the following command

Code:
c all '//' '//*' .a .b


Hope this helps
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 11, 2007 2:11 pm    Post subject:
Reply with quote

Hi Aaru,

Quote:
c all '//' '//*' .a .b


I am not getting this, pls explain clearly.


Thanks & Regards
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Oct 11, 2007 2:13 pm    Post subject:
Reply with quote

Hemantha,

Change all '//' to '//*' between the lables .a and .b (range).
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 11, 2007 2:18 pm    Post subject:
Reply with quote

Hi Murali,

Quote:
Change all '//' to '//*' between the lables .a and .b (range).


Thanx,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Oct 11, 2007 2:22 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

Quote:
am not getting this, pls explain clearly.


Hope you have understood now.

We are first setting up a range and then we are changing the charecters within the range. Forgot to post the output code in my last post.



Code:

//*S1   EXEC  PGM=SORT           
//*SYSOUT   DD  SYSOUT=*         
//*SORTIN DD *                   
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 11, 2007 2:30 pm    Post subject:
Reply with quote

Hi All,

Pavithra was asking for a command to comment multiple line instead of commenting each & every line.

Changing all between labels is common while coding, That I too know what you had done it, But this is not the one to do the same. Ofcourse we can achieve the same with logic.

Thanx & Regards
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Oct 11, 2007 2:42 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

pavitra,

In Rexx we usually comment multiple statements as shown below

/*
statement 1
statement 2
statement 3
*/

Are you looking for similar thing in JCL? Please clarify.
Back to top
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 2:47 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

yes Aaru exactly like that ......
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Oct 11, 2007 2:51 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

Pavithra,

I dont think it is possible to comment multiple lines in JCL as we do in rexx.
Back to top
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 2:51 pm    Post subject: Reply to: Comment multiple lines in JCL
Reply with quote

thanks a lot Aaru

'C all ' is working fine....

Thank you all for your suggestions.....
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 11, 2007 2:53 pm    Post subject:
Reply with quote

Hi Aaru,

Quote:
Are you looking for similar thing in JCL? Please clarify.


I hope the topic tells it, I mean 'YES'

Ragards
Back to top
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Oct 11, 2007 2:54 pm    Post subject: comment multiple lines
Reply with quote

Yes Aaru exactly like that

Thanks a lot 'C all' with label is working fine.

Thank you all for your suggetsions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us