IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sort Trick for numbers


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Mar 22, 2016 4:11 pm
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
Reply with quote

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

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Mar 24, 2016 9:19 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top