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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


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