View previous topic :: View next topic
|
Author |
Message |
deepag02
New User
Joined: 23 Jul 2007 Posts: 20 Location: India
|
|
|
|
hi all,
Is there any way i can suppress the printing of printer carriage control characters in a file?
Thanks in advance.
Deepa. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Don't output FBA?
A little more info would be nice.....
|
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Overwrite column 1 with spaces |
|
Back to top |
|
|
deepag02
New User
Joined: 23 Jul 2007 Posts: 20 Location: India
|
|
|
|
Hi,
Sorry,I guess i was not clear on my question.My reqirement is that i need to generate a report with the count of messages extracted from a MQ.The counts are fine but i am also getting the printer carriage control characters in the 1st position but i dont want them.The file is defined as :
OUTFILE DD DSN=OFRT.COMBINE.PARSE.OUT2.NEW,
DISP=(,CATLG,DELETE),
UNIT=SYSDA,SPACE=(CYL,(3,2),RLSE),
DCB=(RECFM=FB,LRECL=500,BLKSIZE=5000)
Is there anyway i can prevent the printer carriage control characters from being printed in my report or will i have to reprocess this file to remove them such as over writing them with spaces. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
How is this OUTFILE is generated? Is this generated thru SORT utility? |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
What is the definition of what you are generating the report with? COBOL? SELECT & FD? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
CICS Guy wrote: |
What is the definition of what you are generating the report with? COBOL? SELECT & FD? |
And what format of write are you using? |
|
Back to top |
|
|
deepag02
New User
Joined: 23 Jul 2007 Posts: 20 Location: India
|
|
|
|
Hi,
I am creating this file as an o/p of eazytrieve which use report processing.
definition in eazytrieve:
FILE OUTFILE PRINTER FB(500 500)
report
REPORT RPT2 SUMMARY LINESIZE 132 PRINTER OUTFILE
SEQUENCE W-MESSAGE-COUNT
CONTROL W-MESSAGE-COUNT
LINE 'STATISTICS'
TERMINATION. PROC
DISPLAY 'TOTAL MESSAGES EXTRACTED IS ' W-MESSAGE-COUNT
in the job its defined as
OUTFILE DD DSN=OFRT.COMBINE.PARSE.OUT2.NEW,
DISP=(,CATLG,DELETE),
UNIT=SYSDA,SPACE=(CYL,(3,2),RLSE),
DCB=(RECFM=FB,LRECL=500,BLKSIZE=5000)
END-PROC |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
deepag02 wrote: |
FILE OUTFILE PRINTER FB(500 500) |
Treat the output like a file instead of a printer....
Quote: |
REPORT RPT2 SUMMARY LINESIZE 132 PRINTER OUTFILE |
Replace the word PRINTER with the word FILE.....
I don't know, but that might help..... |
|
Back to top |
|
|
deepag02
New User
Joined: 23 Jul 2007 Posts: 20 Location: India
|
|
|
|
hey that worked!!!!! i was able to get the messages but not the header,counts,tally etc now they have dissappeared when i gave
REPORT RPT2 SUMMARY LINESIZE 132 FILE OUTFILE
...the printer carriage control characters are removed.......
one more doubt i have two reports to be printed and i am printing in the same file so i have one more report stmt belowthe one shown.....
as
REPORT RPT SUMMARY LINESIZE 132 FILE OUTFILE
the first stmt is not showing any error but the above stmt is giving an error NOT A VALID FILE - OUTFILE |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Might help to give the second a different name for OUTFILE and add a DD-statement for this new file. |
|
Back to top |
|
|
|