Copy the complete file(FB) to another(FB).
This file will have a trailer record with
The first 262 positions will be Highvalues
Positions from 263 to 270, will have record count,
From Position 271 the record will be padded with spaces.
The problem I am facing here is the record count is starting from 264 instead of 263
Can any one help me out with the reason why this is happening.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Apr 19, 2007 3:11 pm Post subject:
That's because TRAILER1 puts an ANSI carriage control character (e.g. '1' for eject) in position 1 by default, so your X'FF's start in position 2 and the count starts in position 264.
Add REMOVECC to your OUTFIL statement to suppress the ANSI carriage control character so the X'FF's will start in position 1 and the count will start in position 263.
Note that I cleaned up your TRAILER1 parameter a bit. You don't need ',LENGTH=8' after EDIT=(TTTTTTTT) - the 8 Ts in edit automatically give a length of 8. And you don't need the trailing blanks since DFSORT will pad with trailing blanks automatically. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Apr 19, 2007 3:14 pm Post subject:
Ram22,
When you use reporting features like trailer/header the output file attributes will be changed and will have a carriage control character. The lrecl will be increased by 1 bytes. You can supress the carriage control character with REMOVECC parm.
Quote:
The problem I am facing here is the record count is starting from 264 instead of 261
Why would your COUNT start at 261 when you are padding 262 bytes of high-values? If you really want the count to start at 261 then try these control cards
Thanks a lot Frank and Kolusu.
Kolusu,
Just to clarify,
In the I posted
The problem I am facing here is the record count is starting from 264 instead of 263
not 261
Any ways thanks both for the information. This is of great help to me.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum