View previous topic :: View next topic
|
Author |
Message |
Girishm
New User
Joined: 09 Mar 2005 Posts: 35 Location: Mysore
|
|
|
|
Hi all Experts,
I'm new to Easytrieve, while generating a report using EZTP it takes an extra byte for the output. This extra byte may be used to hold the Carriage controle character(I think so). Can anybody tell me how to skip it while creating the report, so that the logical record length remains same as the input file.
Thank you all in advance,
Girish |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Girishm,
Please support your queries with some code sample. This would help in solving the problem faster.
Regards
Mayuresh |
|
Back to top |
|
|
Girishm
New User
Joined: 09 Mar 2005 Posts: 35 Location: Mysore
|
|
|
|
Mayur,
What I mean to say was about the very first character that will be inserted by the UTILITY (EZTP) in the output. It is a carriage control value. Please find the attachment in which the blocked part (1, - & 0) is the extra byte added to the output (report). For example my input file is of length 100 bytes, output will be 101 bytes. So how to avoid this extra byte in the output. I want my output file size same as that of my input file (100 bytes)
Hope i explained the problem indetail, waiting for your suggestion
Girish |
|
Back to top |
|
|
Girishm
New User
Joined: 09 Mar 2005 Posts: 35 Location: Mysore
|
|
|
|
Hi all,
Please suggest me, how to aviod the extra character (ANSI carriage character) on the output report. I referred all vailable Easytrieve material, but of no use.Anybody has solution for this?
PS: Please refer attachment for screen shot in the above post.
______________
GM |
|
Back to top |
|
|
phil rook
New User
Joined: 25 Nov 2005 Posts: 12 Location: amsterdam
|
|
|
|
try using FBA as appropriate on your output satement.
i.e
dcb=(recfm=fba, lrecl=101, blksiize=10100) |
|
Back to top |
|
|
phil rook
New User
Joined: 25 Nov 2005 Posts: 12 Location: amsterdam
|
|
|
|
Oh , I think I now understand - you are not printing it but writing to an output file.
Then read the file into another easytrieve and copy positions 2 to 101 to your output file.
with output dataset length of 100 must be specified also in the easytrieve I think
something like
edit 90 output 100
filea inrec 2 100 a outrec 1 100 a
9999
if 1 = 1
outrec = inrec
I haven't done Easytrieve for 20 years. so the logic is there but not sure about the syntax.
edit 90 output 100 should make a block with 90 records of 100 in length. |
|
Back to top |
|
|
|