HP3000-L Archives

November 1995, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Martin O'Murphy <[log in to unmask]>
Reply To:
Martin O'Murphy <[log in to unmask]>
Date:
Mon, 6 Nov 1995 17:24:17 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
John Dunlop <[log in to unmask]> wrote:
>[This note has been sent to the following InterNet address(es):
>[log in to unmask]]
>
>
>Romilla, you wrote :
>>Could anyone help me with a fairly simple request plse?
>>I need to rename a file in MPE to filemmdd where mm is taken from HPMONTH
>>and dd is taken from HPDATE.
>>I need to right justify and zerofill the value so I want dd=06 not 6.
>
>I suggest : setvar myday rht("00" + "!hpdate",2)
>
That would be my choice too, but to answer the original question more precisely
try:
 
setvar xname, "file"+rht(("00"+"!hpmonth"),2)+rht(("00"+"!hpdate"),2)
rename file,!xname
 
Martin.
--
+---------------___---------------------------------------------------------+
|Nettiquet:    /   \  All my views/comments are personal, and nothing to do |
|4-line sig!  | @ @ | with my employer's organisation.    - Martin O'Murphy |
+---------oooo---U---oooo---------------------------------------------------+

ATOM RSS1 RSS2