IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to make left align alphnumeric number to right align num


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sadashiv.a.bhosure

New User


Joined: 01 Feb 2007
Posts: 15
Location: india

PostPosted: Fri Feb 02, 2007 11:18 am
Reply with quote

Hi,
I am facing problem while sorting & matching sorted files.
for ex.
file1 : contain left align alphnumeric number
file1 : contain right align number

suppose file1,file2 contain
1
1
2
15 data, after sorting file1 file on above field o/p file contain sorted data as 1,1,15,2
and after sorting file2 on above field it gives 1,1,2,15 hence two output file does not matches.

Could anyone please help me how to handle this situaion......
Back to top
View user's profile Send private message
sadashiv.a.bhosure

New User


Joined: 01 Feb 2007
Posts: 15
Location: india

PostPosted: Fri Feb 02, 2007 11:52 am
Reply with quote

Code:

filed 1      field2 (left align alphanumeric number).

abcde        1
xyaaa        2
xyaaa        15
xyaaa        1


I want to sort above file on filed1 and field2 simaltaneously.
O/p should be

Code:

abcde        1
xyaaa        1
xyaaa        2
xyaaa        15


I want treat left align alphnumeric number as an integer.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Feb 02, 2007 12:51 pm
Reply with quote

Hi there,

Try this DFSORT statement:

Code:

//SYSIN    DD  *
   SORT FIELDS=(1,5,CH,A,6,2,UFF,A)
/*
Back to top
View user's profile Send private message
sadashiv.a.bhosure

New User


Joined: 01 Feb 2007
Posts: 15
Location: india

PostPosted: Fri Feb 02, 2007 1:03 pm
Reply with quote

Thank you very much Ekta....
Back to top
View user's profile Send private message
sadashiv.a.bhosure

New User


Joined: 01 Feb 2007
Posts: 15
Location: india

PostPosted: Fri Feb 02, 2007 1:05 pm
Reply with quote

It's working fine Thanks a lot.
Back to top
View user's profile Send private message
sadashiv.a.bhosure

New User


Joined: 01 Feb 2007
Posts: 15
Location: india

PostPosted: Fri Feb 02, 2007 1:07 pm
Reply with quote

Hi Ekta, Can you tell me what is the meaning of 'UFF' ?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Feb 02, 2007 1:36 pm
Reply with quote

Hi There,

UFF means unsigned free form format

For more information on DFSORT's UFF and SFF formats, see:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
Search our Forums:

Back to Top