Hi Chuck,
I've never seen this to fail on any implementation or flavor:
OCONV(TODAY,'DY2')'R%2': OCONV(TODAY,'DM')'R%2': OCONV(TODAY,'DD')'R%2'
If anyone has, please let me know and I'll rethink. The code assumes
(yeah, I know) that TODAY is in ICONV form. I've always used D2Y (I
don't remember why) but it's interesting to note that DY2 works as well.
Charlie
On 04-25-2012 9:30 AM, Charles Stevenson wrote:
me: Win 2003
Perry? 10.2? 10.3? Redhat?
I'd sure like to know what makes the difference.
I'd hate to get bit - again! - in a migration or upgrade.
The worst fall-out I ever had in an upgrade was when they changed an
obscure FMT code without telling anyone.
On 4/25/2012 9:07 AM, Rick Nuckolls wrote:
If not flavor, then hardware/os?
(Sparc/Solaris)
-Rick
On Apr 25, 2012, at 5:26 AM, Charles Stevenson wrote:
On my UV10.2.10 it behaves properly only with [2'',2''], as Richard&
Perry describe.
OCONV( "16187", "DYMD['','']" ) = "2012425"
OCONV( "16187", "DYMD[2'',2'']" ) = "120425"
Like Rick, I find flavor does not matter.
On 4/24/2012 7:38 PM, Rick Nuckolls wrote:
That was my thought, but the flavor does not seem to affect it on
my version.
-Rick
On Apr 24, 2012, at 5:36 PM, Richard Lewis wrote:
Or maybe it's my Pick flavor.
Richard Lewis
On Tue, Apr 24, 2012 at 6:27 PM, Rick Nuckolls<[email protected]>
wrote:
Hmmm,
That must be a change at UV 11. 10.2.x still produces 2 digit
months and
days without the extra 2’s.
-Rick
On Apr 24, 2012, at 5:21 PM, Richard Lewis wrote:
On UV 11.1.3 this leaves single-digit months as a single digit.
OCONV(TODAY, 'DYMD[2"",2"",2]') does the job correctly. The
brackets
allow
format modifiers to the parameters that follow the D conversion
code, in
this case, 'YMD'. The 2's specifiy how many characters to
display, and
the
empty quotes specify the 'text' with which to separate the
elements.
There's about 80 lines that describe it when you do HELP CONV D
at TCL.
Richard Lewis
On Tue, Apr 24, 2012 at 6:08 PM, Rick
Nuckolls<[email protected]> wrote:
Or, a bit more simply:
OCONV(TODAY, "D2YMD[‘’ , ’’]”)
On Apr 24, 2012, at 4:58 PM, Perry Taylor wrote:
OCONV(TODAY, 'DYMD[4"",2"",2]')
----- Original Message -----
From: Lunt, Bruce [mailto:[email protected]]
Sent: Tuesday, April 24, 2012 07:55 PM
To: 'U2 Users List'<[email protected]>
Subject: Re: [U2] YYMMDD easy way?
On Unidata try: OCONV(TODAY,'DYMD')
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Wjhonson
Sent: Tuesday, April 24, 2012 4:52 PM
To: [email protected]
Subject: [U2] YYMMDD easy way?
YYMMDD = OCONV(TODAY,'DY2'):OCONV(TODAY,'DM'):OCONV(TODAY,'DD')
easier way to do this?
_______________________________________________
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users