View previous topic :: View next topic
|
Author |
Message |
amdparsn
New User
Joined: 09 Feb 2009 Posts: 8 Location: Chennai
|
|
|
|
Hi,
Following is my input file where the first 16 numeric data and then 17 to 30 has to be converted to PD.
Please suggest.
Code: |
00000000000010000100100001 5401DK 2080000000ACT71 |
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
And what would you like your output to look like, since the PD are shorter... |
|
Back to top |
|
|
amdparsn
New User
Joined: 09 Feb 2009 Posts: 8 Location: Chennai
|
|
|
|
Of course my o/p has to be shortened , and am going to use this o/p file for loading a table. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Rather than the silly "Of course" reply, it would be more productive to answer Bill's question. . .
You have shown the input. Now show the output (in hex using the Code tag). |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
amdparsn wrote: |
Hi,
Following is my input file where the first 16 numeric data and then 17 to 30 has to be converted to PD.
Please suggest.
|
I suggest to use a SORT. Below is sample control statement to convert the first field.
Code: |
SORT FIELDS=COPY
OUTREC BUILD=(1,16,ZD,TO=PD,LENGTH=8) |
The LENGTH= subparm is optional. You can leave it out. |
|
Back to top |
|
|
amdparsn
New User
Joined: 09 Feb 2009 Posts: 8 Location: Chennai
|
|
|
|
Hi There thanks for the code.... I've got the o/p as expected. |
|
Back to top |
|
|
|