MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DFSORT / Filter based on computed date value

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Wed Apr 14, 2010 3:56 pm    Post subject: DFSORT / Filter based on computed date value Reply with quote

Hi,

This is an addition to my earlier post on DFSORT question at:

http://www.mvsforums.com/helpboards/viewtopic.php?t=11269

Now in this sort step, I have an added filter that I need to output only those records where the date at 94th position equals (current date -1). (That is the comp3 date at 94th position equals yesterday's date).

I do not need to copy all the records from sortin to sortout, only the ones satisfying the condition mentioned above.

Appreciate any help in modifying the existing sysin.

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


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Apr 14, 2010 4:06 pm    Post subject: Reply with quote

kumar26fl,

Use the following control cards

Code:

//SYSIN    DD *                                                   
  SORT FIELDS=COPY                                               
  OUTREC BUILD=(1:10,24,25:94,4,PD,ADD,+19000000,TO=ZDF,LENGTH=8)
  OUTFIL INCLUDE=(25,8,CH,EQ,DATE1-1)                             
//*

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Wed Apr 14, 2010 4:15 pm    Post subject: Reply with quote

Thank You so much, Kolusu. It really helped.

I was going to do it in a separate step using the output from first step. Keeping it in one step makes it easy and I am learning new stuff.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group