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: 73
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: 7279

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: 1640
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 JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm


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