Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

sort on hard coded values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Wed Apr 30, 2014 5:29 am    Post subject: sort on hard coded values
Reply with quote

is it possible to sort on few hard coded values.
My input is -

AA530
BB540
AA550
AA540
BB530
BB550

O/P has to be -
AA550
AA530
AA540
BB550
BB530
BB540
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Wed Apr 30, 2014 5:40 am    Post subject: Reply to: sort on hard coded values
Reply with quote

OK, why should we work out what you mean? Can you explain the process?
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Wed Apr 30, 2014 7:00 am    Post subject:
Reply with quote

well, because I don't have a timestamp in my file, and this number sequence 550-530-540 is a way I can supply data downstream in the correct order.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Apr 30, 2014 11:35 am    Post subject:
Reply with quote

You may have to write a small program to do what you have described.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Wed Apr 30, 2014 11:50 am    Post subject:
Reply with quote

Is the number 550-530-540 always?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Apr 30, 2014 10:41 pm    Post subject:
Reply with quote

Hello,

While reading the input, assign a "sort control" of 1, 2, or 3 for each record to be used for sorting. When the output is written, write only the original input without the additional control fiels.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu May 01, 2014 6:50 am    Post subject: Reply to: sort on hard coded values
Reply with quote

thanks Dick, yes that would be one option I have thought of, or else I might have to include an EZTRV/pgm to this minor task.

Pandora, yes these are only 3 possible values. and that is what I was trying to take advantage of if possible in a sort step.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 01, 2014 11:37 pm    Post subject:
Reply with quote

Hello,

Why add another language step to the process?

What you want is rather minor with sort . . .
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Fri May 02, 2014 12:47 am    Post subject:
Reply with quote

Or...

Edit the file, enter the SORT command and save the file (or a copy of it or as a new member) and bypass the sort step.

How do we know what you really need?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Fri May 02, 2014 12:56 am    Post subject:
Reply with quote

t5590ag wrote:
well, because I don't have a timestamp in my file, and....
and why is the timestamp relevant (assuming you mean the statistics)?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us