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
 

 

Eliminate Carriage Control Characters in Report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Eliminate Carriage Control Characters in Report
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: 1703
Location: Australia

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

Hi,

see link http://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    Post subject: Reply to: Eliminate Carriage Control Characters in Report
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: 6968
Location: porcelain throne

PostPosted: Tue Oct 20, 2009 1:32 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Eliminate Carriage Control Characters in Report
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    Post subject:
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

Site Director


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

PostPosted: Tue Oct 20, 2009 9:12 pm    Post subject:
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    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 Report cost in CA-dispatch Nileshkul CA Products 3 Wed Jun 07, 2017 10:32 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


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