IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Comment multiple lines in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

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

Quote:
Commenting multiple lines
- May not be possible exactly like you want but you can add a null statement in between so that all the lines after null will be ignored.

//stmt1
//stmt2
//stmt3
//stmt4
// ..... nulll
//blah
//blah
//blah

All the 'blah' will be ignored .
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Thu Oct 11, 2007 3:08 pm
Reply with quote

Hi Abhijit Kshirsagar,

Quote:
//stmt1
//stmt2
//stmt3
//stmt4
// ..... nulll
//blah
//blah
//blah

All the 'blah' will be ignored .
icon_lol.gif

If I want to consider after blah I mean stmt5 or stmt6, Is it there any way get rid of it in same Job? I mean without writting another JOB Card? ;-)

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


Good Aaru, Thanx for making it icon_exclaim.gif

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

Senior Member


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

PostPosted: Thu Oct 11, 2007 3:24 pm
Reply with quote

Thanks abhijit.

NULL statement indicates the end of a job. As you said, only way is to add a JOB card.

Techies, please let us know if there is any other option.
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Thu Oct 11, 2007 3:44 pm
Reply with quote

Aaru,

Quote:
NULL statement indicates the end of a job. As you said, only way is to add a JOB card.

Its always BAD IDEA to add second job statement inside a single pds member. This results is submission of TWO jobs with a single submission, which may effect the process.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 11, 2007 6:27 pm
Reply with quote

Hedllo,

Quote:
Are you looking for similar thing in JCL? Please clarify.
Yes, that is what is wanted.

It could be coded, but it won't work. . . .
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Oct 11, 2007 7:34 pm
Reply with quote

Anyway the most appropriate way of commenting jcl is to:
shift right four chars and put the comment in the white space;
in this way You can comment also the data lines,
without loosing any info;
to uncomment then it simply a matter of shifting left 4 chars
Back to top
View user's profile Send private message
Mohammad Rizwan

New User


Joined: 05 Apr 2017
Posts: 1
Location: India

PostPosted: Sat Jun 10, 2017 2:19 am
Reply with quote

pavithraa wrote:
Could anyone please let me know how to comment multiple lines in JCL..


Yes you can.
#1. First shift the line 3 columns to the right. using below Line block command.
))3
line1...
line2...
))

It'll move all the required line 3 columns to the right.

#2. now use below command to change the string. (make sure 3 spaces are there in below command)
C ' //' '//*//' ALL

#3. There will be some lines remaining (SYSIN,etc).. which are not commented.
You need to comment them manually icon_lol.gif by copying (Ctrl+C) first 3 columns of lines vertically (multiple line) and just paste (Ctrl+V) wherever you find uncommented fields.

#4. To uncomment multiple lines, use below comment.
((3
line1..
line2..
((
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Jun 10, 2017 4:15 am
Reply with quote

Do you think he cares after ten years?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top