Unsigned pack field



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Unsigned pack field

Postby vespa » Wed Aug 25, 2010 12:00 pm

Hello,

How to sort Unsigned pack field?

Input file is fixed block, recl=80
record key is pos 1 thru 6, unsigned pack.

Output file needs to have record sorted by key, in ascending order

Sort fields=(1,6,PD,A)

PD is packed decimal, I'm not sure if this will work correct or not?

Thanks.
vespa
 
Posts: 19
Joined: Thu Jul 23, 2009 5:30 am
Has thanked: 0 time
Been thanked: 0 time

Re: Unsigned pack field

Postby NicC » Wed Aug 25, 2010 12:59 pm

First thing to do - try it and see
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Unsigned pack field

Postby Frank Yaeger » Wed Aug 25, 2010 10:46 pm

What do you mean by "unsigned packed field". Show an example of what the input values look like in hex.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Re: Unsigned pack field

Postby KenT » Sat Dec 07, 2013 3:34 am

I would think an unsigned pack field looks like this:
x'02013325'
and I would want to display that as not yet Y10K compliant 2013.325 and be able to later treat it as a REXX-like Date("J") format.

And who would create a field like that? IBM CICS DFH$MOLS UNLOAD does exactly that. Not exactly the friendliest field to work with. Now if I could Substring(TRAN=HEX,2,7) then I might be able to make better sense of it as year and day-in-year.
KenT
 
Posts: 2
Joined: Tue Dec 03, 2013 11:46 pm
Has thanked: 0 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post