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 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: 65
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: 7223

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: 1609
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 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 Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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