Help-Eliminating some extra character getting printed

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Help-Eliminating some extra character getting printed

Post by Gurugars » Mon Mar 28, 2011 5:58 pm

Hi all,

I am suppose to create a report using easytrieve. i have completed with logic and all. But in the end of program, i am geeting some extra characters printed along with the actual data in the first column,

1. In each empty line(i suppose to print), there is a - in the first column.
2. there is some TITLE statementss and one LINE statement, in each line statement there is a 0 (zero) getting printed in the first column.

the output look like this

1REPORT ID: xxxxxxxx

IBD: C01 OFF: CT2 RR
-
ACCOUNT # TYPE OPEN-DATE
--------- ---- ----------
0ABCDEFGHI INDV 2011-01-18

i need to eliminate those highlighted characters. This is my first program in easytrieve i may unaware of this. Please help me out..[/b]

Report part of my coding is,


REPORT REPORT1 LINESIZE 132 PRINTER OUTPUT NOADJUST -
NODATE PAGESIZE 52
CONTROL IBD, OFF-ID, RR RENUM NOPRINT
TITLE 1 COL 1 'REPORT ID: xxxxxxxx' +
COL 46 'INVESTMENT OBJECTIVE CHANGES - WEEKLY' +
COL 91 'DATE: ' COL 97 WS-GED-TD
TITLE 2 COL 46 '--------------------------------------'
TITLE 3 COL 1 'IBD: ' COL 6 IBD +
COL 13 'OFF: ' COL 18 OFF-ID +
COL 24 'RR : ' COL 29 RR
LINE COL 1 WS-ACCOUNT-NUMBER +
COL 11 WS-TYPE +
COL 16 WS-OPEN-DATE +
COL 27 WS-REGISTRATION-ARR +
COL 60 WS-INVEST-OBJ-VALUE +
COL 91 WS-AUDIT-TIME-STAMP +
COL 113 WS-ACTION +
COL 121 WS-UPDT-ID
END
Guru:-)

You're never fully dressed without a smile :)

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Wed Mar 30, 2011 1:51 am

I don't quite get what you want. You're creating a report, but you want to remove all of the important report formatting and printing code? Aren't you planning to either print this report, or at least present it to the end users in the same manner as a printed report?

Anyway, I don't know Easyrieve, but my guess is that you wouldn't use that REPORT function if you don't want printer-ready report output.

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Wed Mar 30, 2011 11:57 am

Hi MrSpock,
So we cant remove those garbage values? (what is the purpose of these garbage values )

Is there any way to remove those values, please let me know..! :idea:
Guru:-)

You're never fully dressed without a smile :)

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Wed Mar 30, 2011 2:00 pm

I wouldn't consider the ASA Carriage Control Characters to be "garbage", but I did take a look at a Easytrieve Guide and I didn't see any option provided to suppress or eliminate those characters. So, I guess your options are to:

- Keep them.
- Not use Easytrieve.
- Pass the report output through a SORT job step and strip off the entire first byte of data.

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Wed Mar 30, 2011 5:03 pm

Thank you so much MrSpock.
Sorry for naming the 'carriage control characters'
as garbage.
Guru:-)

You're never fully dressed without a smile :)

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others