Subject: | |
From: | |
Reply To: | |
Date: | Wed, 19 Jan 2000 17:55:03 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Leonard,
Try this...
Setvar var rht("00000"+(str(hpyyyymmdd,5,4)),4)
-guy
Leonard S. Berkowitz wrote:
> I created a string variable (proved by TYPEOF = 2) with the value 0119, these
> digits being the lower four digits of another variable with a value of 20000119.
> I used STR (string,5,4). When I perform SHOWVAR, I see 0119, but when I
> dereference the variable to create a file name, the name is XX119 and NOT
> XX0119. I thought of checking the length and prepending a '0', but the length of
> my variable is 4.
>
> How do I keep the leading zero when I dereference the variable?
>
> Thanks.
> ===================
> Leonard S. Berkowitz
> Perot Health Care Systems
> (Harvard Pilgrim Health Care account)
> voice: 617-509-1212
> fax: 617-407-8444
|
|
|