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

related to date comparison


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Mon Dec 11, 2006 6:03 pm
Reply with quote

I have an input file1 containing date.
starting position= 20
length=10

i have one more file2 which contains date from 1 to 10.

i have to write the sort card such that i should get the records only if
date in input file1 greater than that in input file2.

i tried this but getting problems.

Code:

//SYSOUT DD SYSOUT=*                       
//SYSIN  DD  *                             
   SORT FIELDS=COPY                         
   OUTFIL FILES=01,INCLUDE=(20,10,CH,GT,   
//  DD DSN=sssss.DI.DATE2,DISP=SHR
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Dec 11, 2006 9:26 pm
Reply with quote

What is the RECFM and LRECL of each input file?

Please show an example of the records in each input file and the expected output records.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top