Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sort Trick for numbers

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

New User


Joined: 14 Jun 2012
Posts: 70
Location: India

PostPosted: Tue Mar 22, 2016 1:33 pm    Post subject: Sort Trick for numbers
Reply with quote

Hi,

I have a job which runs every week. I need to create a file which has records as below.
1,2,3,4,5,6,7

When the job runs next week, it should create file like this
8,9,10,11,12,13,14

in the fifth run, it should be like this
29,30,31,1,2,3,4

Basically these are days in a month.

Any trick for this in DFSORT?
Back to top
View user's profile Send private message

Abid Hasan

New User


Joined: 25 Mar 2013
Posts: 86
Location: India

PostPosted: Tue Mar 22, 2016 3:40 pm    Post subject: Reply to: Sort Trick for numbers
Reply with quote

Hello,

See if this link helps; you'll need to tweak the code a little bit, but the link still gives enough info to go about.

Aside, DFSORT has indeed come a long way in terms of enhancements since the original post in the link. icon_smile.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Mar 22, 2016 4:11 pm    Post subject: Reply to: Sort Trick for numbers
Reply with quote

Indeed, a long way.

Consult the documentation of the date functions. There's not much of a trick to it.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 70
Location: India

PostPosted: Wed Mar 23, 2016 10:38 am    Post subject:
Reply with quote

Thanks for your inputs guys.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


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

PostPosted: Thu Mar 24, 2016 9:19 pm    Post subject:
Reply with quote

Quote:
Any trick for this in DFSORT?

Always bookmark this
look at page10 onwards
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us