View previous topic :: View next topic
|
Author |
Message |
shchan
New User
Joined: 06 Jun 2007 Posts: 58 Location: Hyderabad
|
|
|
|
hi ,
My requirement is to change the columns from 73 to 80 in a cobol pgm to spaces.
can any body tell me the ISREDIT command to change the tags that are present in 73 to 80 columns. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you have to insure that you have a profile which provides bounds to column 80.
num off is an example.
then the edit primary command is: chg all P'=' ' ' 73 80. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
UNNUMB usually works for me |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
UNNUMB also affects cols 1-6 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
True, but that hasn't been mentioned as a restriction by the OP |
|
Back to top |
|
|
bhagyac
New User
Joined: 17 Apr 2008 Posts: 44 Location: bangalore
|
|
|
|
you can try to copy the file to a new dataset with 72 as lrecl,
empty the contents in your orginal file and then copy back from the copied file.
Not sure if this will work.
anyway u can give a try!! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
bhagyac wrote: |
Not sure if this will work.
anyway u can give a try!! |
The whole idea is that YOU know what you are spouting on about before posting.
Why don't YOU try it and then post, rather than wasting other peoples time trying out things that just happen to cross your mind |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
dbzTHEdinosauer wrote: |
UNNUMB also affects cols 1-6 |
This statement is not exactly true, since it doesn't always apply.
UNNUMB only spaces out sequence numbers that are in effect as specified by the NUMBER mode (OFF, STD, COB, or Both STD and COB).
If OFF, UNNUMB will be rejected with an error msg "Not in number mode"
If STD (but not COB), the columns that will be affected depend on the record format: only the last 8 columns will be affected for fixed-length files, only columns 1-8 will be affected for variable-length files
If COB (but not STD), only columns 1-6 will be affected
If Both (COB and STD) both STD and COB sequence columns will be affected (see above). |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Hey - don't screw with cols 1-6. You might drop your pds member on the floor. |
|
Back to top |
|
|
|