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

Eliminate Carriage Control Characters in Report


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

New User


Joined: 04 Aug 2005
Posts: 7

PostPosted: Tue Oct 20, 2009 10:16 am
Reply with quote

Hi All

Could any one please let me know how to eliminate the Carriage control Characters from the report.

I want to know the part of the program that sets up the carriage control characters on the report

Regards
John
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Oct 20, 2009 10:27 am
Reply with quote

Hi,

see link ibmmainframes.com/viewtopic.php?t=11139&highlight=advancing


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

New User


Joined: 04 Aug 2005
Posts: 7

PostPosted: Tue Oct 20, 2009 12:29 pm
Reply with quote

Hello Gerry

Thanks for the links that were sent

I have checked the links. They suggest RECFM=FB should be used instead of RECFM=FBA.

I have tried this but still the Carriage control characters are shown in the report

Could you please advise

Regards
John
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Oct 20, 2009 1:32 pm
Reply with quote

John,

reread the link provided and also the links that you will find there.
there is more than changing the dcb parms.

also, as a gentle suggestion:
don't stop reading when you think that you have found an answer.
continue reading until you understand the subject, completely;
which you obviously have not.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Oct 20, 2009 4:45 pm
Reply with quote

Hi John,

Was a little curious to know how is this report actually getting created ? - what tool or program or ....
Back to top
View user's profile Send private message
dj_sunil

New User


Joined: 04 Aug 2005
Posts: 7

PostPosted: Tue Oct 20, 2009 6:06 pm
Reply with quote

Hello Binop

The report got created from APS Cobol program

It is a control D application.

It does not have the advancing key word

Could you please suggest some solution for elimination of Carriage Control Characters in Report

Regards
John
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Oct 20, 2009 8:02 pm
Reply with quote

Hi John,

Am not sure what a "control D" application is... icon_redface.gif anyway i will post my suggestion...

Why I asked you specifically how it is created is coz sometime back I had done a project converting Easytrieve programs ( Reporting programs ) to COBOL programs. These COBOL programs we tried to simulate the exact o/p of the Easytrieve including the control characters. Even though if we open the report we might see the control characters , it was not populated as it was supposed to... rather it was hardcoded.

Will explain with an example. Say we want to start a new page. As u said usually we give the ADVANCING statement with the PRINT header statement. What we did is to basically edit the header to include the control character also. Something like this...
Code:
1            EMPLOYEE SALARY REPORT           


If this is the logic ( which i should say is very rare ) that is getting used in your enviroment, then basically you might have to edit the header fields. Its just a guess..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Oct 20, 2009 9:12 pm
Reply with quote

Hello,

Quote:
Could you please suggest some solution for elimination of Carriage Control Characters in Report
Does this mean that the report format is no longer needed/wanted?

One easy way to do what you want is to simply copy the "report" to a new dataset and only copy positions 2 thru n (rather than 1 thru n). . .

This way the source is not changed (which is an issue if the code is not available). . .
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 Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
Search our Forums:

Back to Top