How do I declare a 2 digit integer with leading zero openvms
Example:
$month = 01
$month = month + 1
$write sys$output month
I want month to now be 02.
How do I declare a 2 digit integer with leading zero openvms
Example:
$month = 01
$month = month + 1
$write sys$output month
I want month to now be 02.
You don't. A symbol can be either a string or an integer. A string can contain zeroes or other characters wherever you want them. An integer just contains a numeric value.
You can format an integer as a string with leading zeroes using the
f$fao
lexical function:Ref: f$fao.