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 

Help Y'date2' in Syncsort

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


Joined: 01 Jul 2003
Posts: 6
Topics: 5
Location: Pennsylvania, USA

PostPosted: Mon Jun 09, 2008 1:05 pm    Post subject: Help Y'date2' in Syncsort Reply with quote

I need some help using the Y'DATE2' or similar date parameter

We got the following in a sort and have to remember to change it every year to not abend:
Code:

SORT     FIELDS=(59,05,CH,A,       
                  56,03,CH,A,             
                  10,10,CH,A,         
                  01,05,ZD,A,             
                  06,02,Y2C,A,      FISCAL YEAR     
                  08,02,CH,A)       FISCAL MONTH     
 OMIT       COND=(06,02,CH,EQ,C'00',OR,             
                  06,02,CH,EQ,C'05',OR,             
                  06,02,CH,EQ,C'04',OR,             
                  06,02,CH,EQ,C'03',OR,             
                  06,02,CH,EQ,C'02',OR,             
                  06,02,CH,EQ,C'01')                 

I know that we can only handle 38 months data therefor I would like to change it to only include 38 months from current date to prevent me from having to change the sort card every year. Instead of omitting the previous years data I tried to include the date for the 38 months.

I tried the following:
Code:

INCLUDE COND=(06,04,Y2T,GE,Y'DATE2'-38,AND,06.04,Y2T,LE,Y'DATE2')

BUT GOT an data acception error (OC7)

then I try the following:
Code:

INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2')   

BUT get a format incompatible error :
Code:

INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2') 
                                                              *                           
 WER253A  INCLUDE/OMIT FORMATS INCOMPATIBLE                         
INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2')

what I'm I missing I check the manual but cannot find any example ...the date is numeric with yymm format but it seem to sometimes contain zeroes

can anyone please direct me.
Back to top
View user's profile Send private message
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Mon Jun 23, 2008 11:45 am    Post subject: Reply with quote

prgaj1,

Using my own sample data, I submitted the following and got RC=0 with the expected records in my output.
Code:
//SYSIN DD *                                                       
 SORT FIELDS=COPY                                                 
 INCLUDE COND=(06,04,Y2T,GE,Y'DATE2'-38,AND,06,04,Y2T,LE,Y'DATE2')
/*

Based on the 0C7 you received, I can only assume that you have invalid data in your date field.
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
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