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: 6966
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: 1239
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: 1239
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: 1239
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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


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