superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I feel dumb asking this, but I'm not an expert on numeric data types.
The dataset in question is RECFM(F B) LRECL(1600).
The raw data looks like this in hex:
| Code: |
îçí ¬ îçá ¬
15452025154420250000
5685099F5685099F0008
|
and I know that it's composed of these fields:
COMPLETED TIME in HHMMSSTT format. I know this value is: 15:56:48.
COMPLETED DATE in Julian (YYYYDDDF) format. I know this value is: 2009295 (10/22/2009).
STARTED TIME in HHMMSSTT format. I know this value is also 15:56:48.
STARTED DATE in Julian (YYYYDDDF) format. I know this value is also: 2009295 (10/22/2009).
STEP COMPLETION CODE. I know this value is:00000008.
What DFSORT data types would convert these into their decimal equivalents? It looks like p,4,PD,TO=FS,LENGTH=8 is close. |
|
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You could use these DFSORT statements:
| Code: |
OPTION COPY
INREC BUILD=(1,3,HEX,8:5,4,PD,EDIT=(TTTTTTT),16:9,3,HEX,
23:13,4,PD,EDIT=(TTTTTTT),31:17,4,HEX)
|
and the output would be:
| Code: |
155648 2009295 155648 2009295 00000008
|
You can do further conversions/formatting from those values if you need to. |
|