Menu

#196 CONVERT command has multiple issues on playback

Fatal_Error
open-accepted
5
2005-04-25
2001-09-10
No

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

Discussion

  • Jane reynard

    Jane reynard - 2001-09-12
    • assigned_to: nobody --> rclarke
     
  • Daniel Sutcliffe

    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!

     
  • Daniel Sutcliffe

    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'

     
  • Daniel Sutcliffe

    • milestone: 102257 --> Fatal_Error
    • assigned_to: rclarke --> dansut
    • summary: format description does not work --> CONVERT command has multiple issues
    • status: open --> open-accepted
     
  • Daniel Sutcliffe

    • summary: CONVERT command has multiple issues --> CONVERT command has multiple issues on playback
     
  • Daniel Sutcliffe

    A script that illustrates the issues

     

Log in to post a comment.