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: 141

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: 1529
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: 7254

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 REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
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 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