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

How to remove the control char after 72 column.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Feb 25, 2009 3:39 pm
Reply with quote

Hi,

I have copied then cobol program from program library to my personal PDS. After copying i am seeing the control charecter from 72 column, i need to put the comments at this loaction, How to remove the control charecter.

tso profile is

Code:
....SOURCE (FIXED - 80)....RECOVERY ON....NUMBER ON STD COB.............
....CAPS OFF....HEX OFF....NULLS OFF....TABS OFF....SETUNDO STG.........
....AUTOSAVE ON....AUTONUM OFF....AUTOLIST OFF....STATS ON..............
....PROFILE UNLOCK....IMACRO NONE....PACK OFF....NOTE ON................
....HILITE COBOL PAREN CURSOR...........................................



Thanks,
Amsar
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Feb 25, 2009 3:52 pm
Reply with quote

Hi,

num off and blank out 73 to 80


Gerry
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Feb 25, 2009 3:57 pm
Reply with quote

Code:
c p'^' ' ' 73 80 ALL
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Feb 25, 2009 3:59 pm
Reply with quote

Thanks Gerry !!!
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Feb 25, 2009 4:03 pm
Reply with quote

PeD,

Below command works.


Code:
c p'¬' ' ' 73 80 ALL
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 25, 2009 4:51 pm
Reply with quote

I perfer this:
Code:

C ALL P'=' ' ' 73 80
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 25, 2009 10:12 pm
Reply with quote

ren;unnum should also work. If it doesn't, ren std;unnum;ren cob;unnum should get rid of both 1-6 and 73-80.
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Feb 26, 2009 3:47 pm
Reply with quote

Terry,

Your solution is perfect for this problem.

Thanks,
Amsar
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Feb 26, 2009 8:00 pm
Reply with quote

The thing to be careful of is destroying the audit comments of previous developers if they used 1-6 or 73-80 for that purpose. icon_smile.gif
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Fri Feb 27, 2009 1:52 pm
Reply with quote

Thanks,

I will take care!!!
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Feb 27, 2009 8:21 pm
Reply with quote

As a tip that I used recently, let's say initially the 1st deveoper placed the program name in 73-80 of all lines of the source, for instance PGM00001. Then other developers used a problem ID like PB0001 on changed or added lines. I would use a
Code:
c pgm00001 '        ' 73 all
command to remove everything but the audits, then flag my own changes with PB0002 or whatever for consistency.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top