Subject: | |
From: | |
Reply To: | |
Date: | Mon, 6 Nov 1995 17:24:17 GMT |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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---------------------------------------------------+
|
|
|