Actually, the answer I got was just what I was looking for. I was
trying to use the STR in front of the CMD, so my attempts at SETVAR
NEWTIM STR ('!HPHOUR:!HPMINUTE') didn't work (I was sure I had to use
the STR part of the CMD, but I was wrong).
Again, thanks to all.
Also, I got some really cool versions of how to account for the zero for
a single digit hour or minute, and my favorite was:
setvar FmtTime "![RHT('0!hphour',2)]:![RHT('0!hpminute',2)]"
Thanks, Paul...very elegant, yet simple.
:-D
Ray Shahan
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Denys Beauchemin
Sent: Tuesday, August 16, 2005 12:17 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Numeric to a string in MPE/ix?
The original question did talk about converting a numeric to a string.
You
do want to look at the DECIMAL, OCTAL and HEX functions.
Denys
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf
Of Shahan, Ray
Sent: Tuesday, August 16, 2005 12:02 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Numeric to a string in MPE/ix?
Got the answer...was really easy (thanks, James R.).
If anyone is as forgetful as I on this stuff (although I rarely ever
write CMD files), here's the answer:
Setvar newtime '!HPHOUR:!HPMINUTE'
Have a great week!
_____________________________________________
From: Shahan, Ray
Sent: Tuesday, August 16, 2005 11:42 AM
To: [log in to unmask]
Subject: Numeric to a string in MPE/ix?
Hi all,
I thought, at one time, I had converted a numeric to a string in
MPE, but I either never did, or can't remember how. The problem I'm
trying to solve is to pass a formatted time to another process via the
hphour and hpminute vars. For instance hphour = 6 and hpminute = 10, so
the formatted string to pass would be 06:10.
Any help's greatly appreciated.
TIA,
Ray Shahan
Life is not a journey to the grave with the
intention of arriving safely in a pretty and
well preserved body, but rather to skid in
broadside, thoroughly used up, totally worn out,
and loudly proclaiming:
-- WOW!!! What a Ride
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
========================================================================
This e-mail message has been scanned for Viruses and Content and cleared
by School Specialty's email filtering solution.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|