Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 96
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: 88
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: 7312

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: 96
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: 2262
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 One-One matching using SORT dearlux SYNCSORT 3 Fri Oct 11, 2019 12:11 am
No new posts Create Dynamic Sort card with Omit co... balaji81_k DFSORT/ICETOOL 9 Thu Sep 26, 2019 10:06 pm
No new posts need assistance on a sort rajiv rengasamy SYNCSORT 11 Fri Jul 26, 2019 8:19 pm
No new posts need help with a tricky sort - Continued rajiv rengasamy SYNCSORT 8 Tue Jul 16, 2019 1:26 pm
No new posts Sort records within a data block rajiv rengasamy DFSORT/ICETOOL 0 Fri Jul 12, 2019 3:25 pm

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