View previous topic :: View next topic
|
Author |
Message |
Hari Kumar
New User
Joined: 28 Jul 2005 Posts: 19
|
|
|
|
Hi,
I have one input with first two char as numeric value.
INPUT
00AAAA
01BBBB
02VVVV
12AAAA
O/p file should contain only in below mentioned format
OUTPUT
F000AAAA [ First two chars changed from numeric to Hex value]
F001BBBB
F002VVVV
F1F2AAAA
Basically the first 2 chars in a file needs to be changed to the hex value.
Please provide sysin card for this. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
Please find the attached sysin card . I assumed that record length of i/p file is 80 bytes
Code: |
OPTION COPY
OUTFIL OUTREC=(1:1,2,HEX,
5:3,78) |
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Hari,
Ekta's DFSORT statements will do what you asked for. But you have the output wrong. It will be:
Code: |
F0F0AAAA
F0F1BBBB
F0F2VVVV
F1F2AAAA
|
|
|
Back to top |
|
|
Hari Kumar
New User
Joined: 28 Jul 2005 Posts: 19
|
|
|
|
Its working. Thanks a lot and happy new year wishes |
|
Back to top |
|
|
|