View previous topic :: View next topic
|
Author |
Message |
rsuneelk
New User
Joined: 08 Nov 2006 Posts: 9
|
|
|
|
Hi,
I have a VB file has length 182
it has 9 comp-3 and 3 numeric fields starting from 120th position each comp-3 field is 6 bits long (s9(9)v99) and each numeric field is 3 bits long (99v9)
in input file these fields don't have any data.
i want to create a output record with starting 119 bits remains same and
i want to move zeroes to all comp-3 and numeric fields.
here is my sort card
OUTREC FIELDS=(1:1,123,
124:1Z,
130:1Z,
136:1Z,
142:1Z,
148:1Z,
154:1Z,
160:1Z,
166:1Z,
172:1Z,
178:1Z,
181:1Z,
184:1Z)
output is not coming correctly.
Please help me.
Thanks
Suneel |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
By 'bits' you really mean 'bytes'?
Could you post the output that 'is not coming correctly'? |
|
Back to top |
|
|
rsuneelk
New User
Joined: 08 Nov 2006 Posts: 9
|
|
|
|
yes it is Bytes not bits
Thanks
Suneel |
|
Back to top |
|
|
rsuneelk
New User
Joined: 08 Nov 2006 Posts: 9
|
|
|
|
if it is browsed the output is like this
Code: |
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999...êíæ.....@. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999...ÃÉ......<. . . . . . . . . . . .
0059999...îâ...É.o<. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . .
0059999............. . . . . . . . . . . . |
if it is browsed in Fail Aid the output is like this
Code: |
VTC-PB-PROJ-MAW1 VTC-PB-PROJ-MAW2 VTC-PB-PROJ-MAW3 VTC-PB-PROJ-GA1
6/PS 6/PS 6/PS 6/PS
(120-125) (126-131) (132-137) (138-143)
12-------------- 13-------------- 14-------------- 15-------------
********************************* TOP OF DATA **********************-CAPS OFF-*
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID
INVALID INVALID INVALID INVALID |
Thanks for your quick reply
Suneel |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
A comp-3 field is a PD field. What you're calling a "numeric" field is a ZD field. 1Z is a binary zero (X'00') which is not valid for a PD field or a ZD field.
A 6-byte PD zero value can be created with the following hex constant:
X'00000000000C'
A 3-byte ZD zero value can be created with the following character constant:
C'000'
So just use those constants where needed.
Alternatively, you can create the appropriate zero values like this:
+0,TO=PD,LENGTH=6
+0,TO=ZD,LENGTH=3 |
|
Back to top |
|
|
rsuneelk
New User
Joined: 08 Nov 2006 Posts: 9
|
|
|
|
Thank you very very much.
it is working fine.
Thanks
Suneel |
|
Back to top |
|
|
|