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
 

 

can we build dynamic sort card?

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

Active User


Joined: 05 Oct 2006
Posts: 144

PostPosted: Fri Jan 03, 2014 6:52 pm    Post subject: can we build dynamic sort card?
Reply with quote

hi,

i have 2 input files.file1 has start date and end date.
file two has set of records.

say for example:

file1=LRECL=20

Code:
2013-01-012013-12-12


FILE 2=(LRECL=15)

Code:
2013-01-01ABCD
2013-02-01ABCD
2013-03-01ABCD
2013-04-01ABCD
2013-05-01ABCD
2013-06-01ABCD
2013-07-01ABCD
2013-08-01ABCD
2013-09-01ABCD
2013-10-01ABCD
2013-11-01ABCD
2013-12-01ABCD
2014-01-01ABCD


AND I want to extract only those records which falls between the range of file1 dates.

i,e greater than 2013-01-01 and less than 2013-12-12

so my output should be

Code:
2013-02-01ABCD
2013-03-01ABCD
2013-04-01ABCD
2013-05-01ABCD
2013-06-01ABCD
2013-07-01ABCD
2013-08-01ABCD
2013-09-01ABCD
2013-10-01ABCD
2013-11-01ABCD
2013-12-01ABCD

i know this can be achieved using join keys. but is there any way we can build dynamic sort card and extract records from file2??

regds,
prahlad shetty
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 03, 2014 7:16 pm    Post subject:
Reply with quote

Hello,

Another way to do thi would be to read file 1 and assign symnames to the 2 dates.

Then copy/sort the file including or excluding the wanted or unwanted records.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1535
Location: Andromeda Galaxy

PostPosted: Fri Jan 03, 2014 9:11 pm    Post subject:
Reply with quote

As Dick suggests if your version of DFSORT supprts SYMNAMES you can create SYMNAMES data dynamically and then sort

Lots of examples available on SYMNAMES
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Jan 03, 2014 10:08 pm    Post subject: Reply to: can we build dynamic sort card?
Reply with quote

I don't think symbols/SYMNAMES are very new. I doubt that anyone still has a DFSORT which does not have symbols/SYMNAMES. If they do, it is well, well, well, out of Support.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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