Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us