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
 

 

what is the command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 43

PostPosted: Sun Jun 06, 2004 2:29 pm    Post subject: what is the command
Reply with quote

I have 1000 line code i have written in 6th column instead of 8th column,how can i set it to 8th column with single command
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jun 07, 2004 9:17 am    Post subject:
Reply with quote

Hi shriya,

You mentioned nothing about your environment (lang, OS, editor, etc.)

I'll assume you use ISPF/PDF:

1) Go into edit and call up your pgm code.
2) Enter "bnd 6 80" on the command line.
3) Enter "))2 " as a line command on the 1st line of your pgm.
4) Enter ")) " as a line command on the last line of your pgm.
5) Reset the boundary by entering "bnd" on the command line.

This will shift every line 2 spaces to the right.

If you have seq numbers in cols 73 thru 80 set thebnds to "bnd 6 72".
Be careful; if you have data in cols 71 & 72 the data can get truncated.
So check those cols before you do the shift.

Use "x all;f all p'^' 71 72" If this doesn't work (your keyboard may not be configured foor ^ equal to "not equal") try this:

"x all;f all ' ' 71 72;flip"

Either will display all pgm lines that contain non-blanks in 71 or 72.

HTH, Jack.
Back to top
View user's profile Send private message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 43

PostPosted: Wed Jun 09, 2004 6:29 pm    Post subject: thanx jack
Reply with quote

Hi Jack

thanks for giving reply.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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