Calling as described below. (Windows 2000 OS), Return-Code is 2, status 47. Running same string from command line is successful. RBLDSUB.OBJ, RBLDMAIN.OBJ linked to calling .dll. DLLs are are linked dyanmically. Don't know where the difference in this string and command line could be, help appreciated.
STRING AIREBLD-EF-BAD-FILE-LN DELIMITED BY SPACE
',' DELIMITED BY SIZE
AIREBLD-EF-NEW-FILE-LN DELIMITED BY SPACE
' /D /E' DELIMITED BY SIZE
INTO RBLD-PARAMETERS.
CALL 'CALLRB' USING RBLD-PARAMETERS
RBLD-STATUS
END-CALL
IF RETURN-CODE > ZEROES
MOVE RBLD-STATUS TO FILE-STATUS
END-IF
STRING AIREBLD-EF-BAD-FILE-LN DELIMITED BY SPACE
',' DELIMITED BY SIZE
AIREBLD-EF-NEW-FILE-LN DELIMITED BY SPACE
' /D /E' DELIMITED BY SIZE
INTO RBLD-PARAMETERS.
CALL 'CALLRB' USING RBLD-PARAMETERS
RBLD-STATUS
END-CALL
IF RETURN-CODE > ZEROES
MOVE RBLD-STATUS TO FILE-STATUS
END-IF