Bill Ross
New User
Joined: 25 Jan 2007 Posts: 39 Location: Charleston SC
|
|
|
|
I am overlooking the proper ?outfile' statement when I look through the DFSORT manual. So Frank I need your help.
I am attempting to create a file that contains an 80 byte FB record. The customer number of 001001 should be a constant in columns 1, 6 also the totals from several input records, in columns 7, 12, also in column 25 there should be a 'B' to identify the record type.
I have been successful in totaling the input record totals the total in the output record of 098500 I have verfied is correct; my problem is to place the constant of 001001, in columns 1, 6 of the output record.
The control cards that I am using to generate the file are as follows
Code: |
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,
BUILD=(1,73,80:X),
TRAILER1=(5,6,
TOT=(1,6,ZD,M11,LENGTH=6),C'000000000000',C'B')
/* |
I have attempted two/three unsuccessful resolutions. The last output file is as follows
Code: |
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
00 098500000000000000B |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
my problem is to place the constant of 001001, in columns 1, 6 of the output record. |
Not sure what you've tried, but you can put the constant in as a character string like this:
Code: |
TRAILER1=('001001',...)
|
|
|