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

what is the command


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
Search our Forums:

Back to Top