IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to avoid an extra byte in output file(easytrieve)??


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Girishm

New User


Joined: 09 Mar 2005
Posts: 35
Location: Mysore

PostPosted: Fri Mar 11, 2005 5:55 pm
Reply with quote

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 icon_idea.gif
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Sat Mar 12, 2005 11:31 am
Reply with quote

Girishm,

Please support your queries with some code sample. This would help in solving the problem faster.

Regards
Mayuresh
Back to top
View user's profile Send private message
Girishm

New User


Joined: 09 Mar 2005
Posts: 35
Location: Mysore

PostPosted: Sat Mar 12, 2005 3:19 pm
Reply with quote

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
View user's profile Send private message
Girishm

New User


Joined: 09 Mar 2005
Posts: 35
Location: Mysore

PostPosted: Tue Mar 29, 2005 6:33 pm
Reply with quote

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
View user's profile Send private message
phil rook

New User


Joined: 25 Nov 2005
Posts: 12
Location: amsterdam

PostPosted: Sun Nov 27, 2005 10:42 pm
Reply with quote

try using FBA as appropriate on your output satement.
i.e

dcb=(recfm=fba, lrecl=101, blksiize=10100)
Back to top
View user's profile Send private message
phil rook

New User


Joined: 25 Nov 2005
Posts: 12
Location: amsterdam

PostPosted: Sun Nov 27, 2005 11:08 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Convert PS to TXT file using jcl JCL & VSAM 7
This topic is locked: you cannot edit posts or make replies. Sort to include records of file 2 int... Java & MQSeries 1
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
No new posts How to modify file content using REXX CLIST & REXX 3
No new posts VB file copy COBOL program gives erro... COBOL Programming 3
Search our Forums:

Back to Top