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
 

 

How to remove the control char after 72 column.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to remove the control char after 72 column.
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: 1703
Location: Australia

PostPosted: Wed Feb 25, 2009 3:52 pm    Post subject:
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: 456
Location: Belgium

PostPosted: Wed Feb 25, 2009 3:57 pm    Post subject:
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Wed Feb 25, 2009 4:51 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am


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