Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us