Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sort card to identify records which is less than 7 days

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

New User


Joined: 12 May 2006
Posts: 51
Location: India

PostPosted: Fri Nov 15, 2013 2:45 pm    Post subject: Sort card to identify records which is less than 7 days
Reply with quote

Hi,

I need to Identify records in a file which is having date of Current date - 7 days

Will there be any sort card can be used to identify records having timestamp less than 7 days from current date

Thanks
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Nov 15, 2013 2:50 pm    Post subject: Reply to: Sort card to identify records which is less than 7
Reply with quote

Yes. Many examples here if your search for them. Examples and explanations in the manual.

I can't help but point out that using the current date is a recipe for confusion. What if the job runs before midnight? After? Is re-run 12 days later? Has to work for a particular date in testing and on through the cycle?
Back to top
View user's profile Send private message
raj4neo
Warnings : 1

New User


Joined: 12 May 2006
Posts: 51
Location: India

PostPosted: Fri Nov 15, 2013 2:55 pm    Post subject: Reply to: Sort card to identify records which is less than 7
Reply with quote

We are doing for a report generation , and we are doing manually every day at particular time , its not a scheduled Batch Job
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Nov 15, 2013 2:58 pm    Post subject: Reply to: Sort card to identify records which is less than 7
Reply with quote

OK. And if someone wants it for a different date, remember to temporarily change the code.

As I said, there are examples here. The manual will also get you there.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Nov 15, 2013 8:15 pm    Post subject:
Reply with quote

Assuming you are having your date field in CCYYMMDD format you can use the following control cards

This assumes that your date field (CCYYMMDD) is at position 25
Code:

//SYSIN   DD *
  OPTION COPY
  INCLUDE COND=(25,8,CH,LE,DATE1-7)
//*
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
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts Writing multiple records into a CSV r... hiravibk DFSORT/ICETOOL 2 Wed Nov 07, 2018 2:35 pm
No new posts Mainframe + Card domain exp. req. 5-6... capricorn Mainframe Jobs 0 Wed Oct 24, 2018 5:10 pm
No new posts Can records in IMS/DB be related usin... SRICOBSAS IMS DB/DC 2 Fri Oct 19, 2018 3:53 pm
No new posts Need help on the multiple files refor... wik123 DFSORT/ICETOOL 7 Wed Sep 19, 2018 10:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us