The reason to change the control character in the file is because I need to send the file to client who needs to print the file on their printers, and their printer doesn’t support this control character setup. Currently I am editing the file manually in my PC using Text editing software ULTA Edit.
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
The reason to change the control character in the file is because I need to send the file to client who needs to print the file on their printers, and their printer doesn’t support this control character setup.
That is what i expected.
Why not change the code to produce the report in a client-usable format?
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
it cant be done because this file will be genareted for more than one client therfore cant change the format for others.
Well, that is no surprise. . .
Might a second report format be added to the existng code?
If you must work with the report file, what you want to do should be straightforward with a bit of cobol code. That is surely better than doing it by hand each run.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
Delete first record and shift column up
lb,
It looks to me like you shifted all of the ccs up one record (so the 1 from the As record was shifted up to the blank record, the blank from the B's record was shifted up to the A's record, etc). The first record (the blank one) was NOT actually deleted - it's still there. Of course, there's no cc to shift up to the last record, so I assume it just gets a blank cc.
what i done now i extracted the control charcter to diffrent file and delete the first line using insync here is the code
note RECFM=FBA and LRECL=134 input file
the only difference between the two files is an extra blank page printed at the beginning,
also since it looks like that the format is "ASA"
by shuffling/shifting thing the way You ask You ill get a printout completely different
so there should not be any difference as far as printer support is concerned