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

commenting JCL code


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prakashreddy

New User


Joined: 11 Aug 2005
Posts: 10
Location: Bangalore

PostPosted: Fri Aug 12, 2005 1:46 pm
Reply with quote

HI THIS IS PRAKASH REDDY,
MY QUESTION IS ,

I HAVE, SAY SUPPOSE, 100 LINE CODE IN JCL,I WANT TO MAKE 10 LINES IN-BETWEEN COMMENTS.WHAT IS THE SIMPLE WAY TO DO THIS OTHER THAN
USING //* TO ALL 10 LINES.


PLEASE SOME ONE TRY TO FINDOUT SOLUTION..AND LET ME KNOW.
BYE.[/b]
Back to top
View user's profile Send private message
Dariusz
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 27
Location: POLAND

PostPosted: Fri Aug 12, 2005 2:05 pm
Reply with quote

We can start from selected line by insert '//*'
For ten lines we use reply from first '//*'.
Generaly,for this sytuation,depend on nedds,I can see only some cobination of change with start and end column and labels plus copy or reply function.
I can't see any solution without '//*'.
Good luck.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Fri Aug 12, 2005 6:59 pm
Reply with quote

You can also indent with "))" your code for the 100 lines and then use a COPY-OVER (C-> OO - OO) of "//*" that's the base of JCL commands.
i.e.
Code:

000001 abcdefg
=COLS> ----+----1----+
))3    //STEP...
000003 //
.........
000100 /*
))     //


You will have:
Code:
000001 abcdefg
=COLS> ----+----1----+
000002    //STEP...
000003    //
.........
000100    /*
000101    //


Then insert a new line at the top:
Code:
000001 abcdefg
=COLS> ----+----1----+
i00002    //STEP...
000003    //
.........
000100    /*
000101    //


The Copy OO:
Code:
000001 abcdefg
=COLS> ----+----1----+
000002    //STEP...
C00003 //*
oo0004    //
.........
000100    /*
oo0101    //
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Fri Aug 12, 2005 7:03 pm
Reply with quote

i dont see much time consumption difference with the regular commenting:)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top