View previous topic :: View next topic
|
Author |
Message |
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
hemanth.nandas
Active User
Joined: 18 Aug 2007 Posts: 120 Location: India
|
|
|
|
Hi Abhijit Kshirsagar,
Quote: |
//stmt1
//stmt2
//stmt3
//stmt4
// ..... nulll
//blah
//blah
//blah
All the 'blah' will be ignored . |
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
Thanks & Regards |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
Mohammad Rizwan
New User
Joined: 05 Apr 2017 Posts: 1 Location: India
|
|
|
|
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 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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Do you think he cares after ten years? |
|
Back to top |
|
|
|