I have a Rexx calling an existing Clist that checks if a ds is migrated - I get the following error messages:-
IKJ56529I SYMBOLIC PARMS IN VALUE LIST IGNORED - ''DNCL.PROCLIB''+
IKJ79016I STMT 21 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ79016I STMT 22 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ79016I STMT 23 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ56529I COMMAND PROCEDURE HAS NO PROC STMT
Here's the code:-
000014 ARG DSN DIAG
000015 IF DIAG = 'DIAG' THEN TRACE I
000016 ELSE DIAG = ''
000017 ADDRESS ISPEXEC
000018
000019 LISTDSI_RC = LISTDSI(DSN 'NORECALL NODIRECTORY')
000020 SELECT
000021 WHEN LISTDSI_RC = 0 THEN RETURN 0
000022 WHEN LISTDSI_RC = 16 & SYSREASON = 5 THEN RETURN 8
000023 WHEN LISTDSI_RC = 16 & SYSREASON = 9 THEN RETURN 4
000024 OTHERWISE RETURN 16
000025 END
000026 RETURN RC
Is there anything special I need to code for the Rexx to call the Clist?
IKJ56529I SYMBOLIC PARMS IN VALUE LIST IGNORED - ''DNCL.PROCLIB''+
IKJ79016I STMT 21 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ79016I STMT 22 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ79016I STMT 23 THE WHEN EXPRESSION MUST BE PARENTHESIZED
IKJ56529I COMMAND PROCEDURE HAS NO PROC STMT
Here's the code:-
000014 ARG DSN DIAG
000015 IF DIAG = 'DIAG' THEN TRACE I
000016 ELSE DIAG = ''
000017 ADDRESS ISPEXEC
000018
000019 LISTDSI_RC = LISTDSI(DSN 'NORECALL NODIRECTORY')
000020 SELECT
000021 WHEN LISTDSI_RC = 0 THEN RETURN 0
000022 WHEN LISTDSI_RC = 16 & SYSREASON = 5 THEN RETURN 8
000023 WHEN LISTDSI_RC = 16 & SYSREASON = 9 THEN RETURN 4
000024 OTHERWISE RETURN 16
000025 END
000026 RETURN RC
Is there anything special I need to code for the Rexx to call the Clist?