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
 

 

SELCOPY validate Date field defined as text in fmt DDMMYYYY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics
View previous topic :: :: View next topic  
Author Message
Deepthy Jose P

New User


Joined: 07 Mar 2007
Posts: 40
Location: India

PostPosted: Mon May 21, 2012 3:50 pm    Post subject: SELCOPY validate Date field defined as text in fmt DDMMYYYY
Reply with quote

In SELCOPY inline command how can i compare a date field which is declared as text(alphanumeric) in a file with a constent date field
e.g IF POS 10 LT '01052010'
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 21, 2012 5:18 pm    Post subject:
Reply with quote

SELCOPY is a 3rd Party tool,
and not an IBM product.

Here is the SELCOPY Homepage.

manuals, tutorials, FAQs (among other things) are found there.
Back to top
View user's profile Send private message
Deepthy Jose P

New User


Joined: 07 Mar 2007
Posts: 40
Location: India

PostPosted: Mon May 21, 2012 5:21 pm    Post subject:
Reply with quote

thanks Dick
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Mon May 21, 2012 7:49 pm    Post subject:
Reply with quote

IIRC (we don't have Selcopy at this site) you don't decalre fields as numeric or otherwise. so if you do a compare it will simply compare it as text data. As long as you've got numeric values in your file to compare with your constant date then it shouldn't be an issue.

If you do get non-numerics in your file, that's a different issue. It will consider "A" to be less than "1" for example, rather than throw any sort of error. But you could use a LT and a GT comparison to overcome that.

Bear in mind also, that in your example, you have the date in DDMMYYYY format, but to Selcopy it's just a string of numbers. So it will consider 01052010 to be less than 02052009, for example.

There may be date routines in Selcopy, although I've never used them. If you e-mail the guys at CBL with any queries, I've always found them to be extremely helpful.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics 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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
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 outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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