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
 
SYNCSORT - Extract records with only Date

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Sat Sep 18, 2010 6:54 pm    Post subject: SYNCSORT - Extract records with only Date
Reply with quote

Hi Friends,

I have the below requirement

Input File - VSAM File - FB- 240

VENDOR-NUM VEN-TYPE COMMENT
A2345 18 PRE REQUISTE 08/01/2010
A2345 17 PRE REQUISTE 08/01/2010
A2345 17 PRE REQUISTE 08/01/2010
A2345 17 01/08/2010 01/28/2010
A2345 17 02/08/2010 02/28/2010
A2345 17 03/08/2010 03/28/2010
A2345 17 04/08/2010 04/28/2010

Expected output
VENDOR-NUM VEN-TYPE COMMENT
A2345 17 01/08/2010 01/28/2010
A2345 17 02/08/2010 02/28/2010
A2345 17 03/08/2010 03/28/2010
A2345 17 04/08/2010 04/28/2010

Extract only the vendor type records of vendor type = 17 having the comment format - mm/dd/yyyy <space> mm/dd/yyyy

My shop contains only the SYNCSORT, is there any way i could filter out the records with the above format.
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: Sat Sep 18, 2010 10:59 pm    Post subject:
Reply with quote

Hello,

Simply INCLUDE the records with a slash (/) in the required positons.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Sun Sep 19, 2010 10:15 am    Post subject: Reply to: SYNCSORT - Extract records with only Date
Reply with quote

Thanks a lot.

Is it possible to extract the records with the format using include?

MM/DD/YYYY MM/DD/YYYY

The date could be any date, but the format of the comment will be the same.
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: Sun Sep 19, 2010 10:50 am    Post subject:
Reply with quote

Hello,

If the date will always be that format, there is no reason to use anything other than the slashes. . . . There is not a "function" that i'm aware of to determine if a field is a date or not. . .

If you have not posted what is really to be done, do so now.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Sep 21, 2010 2:36 am    Post subject:
Reply with quote

Duplicate Request to a PM.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am

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