View previous topic :: View next topic
|
Author |
Message |
dj_sunil
New User
Joined: 04 Aug 2005 Posts: 7
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
Back to top |
|
|
dj_sunil
New User
Joined: 04 Aug 2005 Posts: 7
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi John,
Was a little curious to know how is this report actually getting created ? - what tool or program or .... |
|
Back to top |
|
|
dj_sunil
New User
Joined: 04 Aug 2005 Posts: 7
|
|
|
|
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 |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi John,
Am not sure what a "control D" application is... 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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|