×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
It compiles and runs fine for me at V7R1.
Scott Mildenberger
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: Tuesday, January 29, 2013 9:26 AM
To: Midrange Systems Technical Discussion
Subject: convert *usa formatted varying string bombs at v5r4
can someone confirm that this code bombs on their system? The following
code converts from character to date. Each of the %date functions work
for me except the last one. Converting from varying to date when the
date format is *USA.
** --------------------- ConvertTester --------------------------
** test conversion of string to date.
pConvertTester b
dConvertTester pi
d ch30 s 30a
d dt1 s d
d vary30 s 30a varying
/free
// convert character date in *iso format.
vary30 = '2012-10-01' ;
ch30 = vary30 ;
dt1 = %date(ch30:*iso) ;
dt1 = %date(vary30:*iso) ;
// convert character date in *usa format.
vary30 = '10/1/2012' ;
ch30 = vary30 ;
dt1 = %date(ch30:*usa) ;
// this bombs.
dt1 = %date(vary30:*usa) ;
/end-free
p e
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.