HP3000-L Archives

January 2000, Week 3

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:
Guy Paul <[log in to unmask]>
Reply To:
Date:
Wed, 19 Jan 2000 17:55:03 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
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

ATOM RSS1 RSS2