CONVERT command has multiple issues on playback
Brought to you by:
dansut
the following code fragment causes a "E* ERROR: FAILED
PROCESSING TOF RECORD FOR SCRIPT LINE" error:
...
CHARACTER*4 sub_vu_id, LOCAL
INTEGER sub_int_vu_id, LOCAL
...
SET sub_vu_id = "1"
CONVERT sub_vu_id TO sub_int_vu_id
CONVERT sub_int_vu_id TO sub_vu_id, RIGHT JUSTIFY
Logged In: YES
user_id=19748
Asking to RIGHT JUSTIFY but with LEADING SPACES doesn't give
the error but seems to empty the string!
Logged In: YES
user_id=19748
Another problem: documentation states that:
"If the output buffer is too small to hold the output
string, it will be filled with asterisk (*) characters."
but this is clearly not the case. This SCL:
CHARACTER*2 TSTCHR
INTEGER TSTINT
...
SET TSTINT = 100
CONVERT TSTINT TO TSTCHR
LOG "Converted(no options): '", TSTCHR, "'"
Gives this log:
1-1 :[XX]:LOG: Converted(no options): '10'
A script that illustrates the issues