Expected output is
CALL MODULE1 USING
CALL MODULE2 USING
I am trying - To read the COBOL program, when there is a call statement in the line, I should take out the single and double quotes which are using to values of literal for cobol static call programs, then called program name will be separated using PARSE VAR CALLDUMMY PGMNAME.
While running above code I am getting below error
'CALL"MODULE1"USING"' is not recognized as an internal command
'CALL"MODULE2"USING"' is not recognized as an internal command
also when i try to execute below loops but both the loops are not satisfied
IF POS(SINGLE_QUOTE,CALL_STM1) THEN
SAY 'LINE HAS SINGLE QUOTE'
IF POS(DOUBLE_QUOTE,CALL_STM1) THEN
SAY 'LINE HAS DOUBLE QUOTE'
I need the above check - to make sure it is static call - If i dont have any quotes then i will move the line to dynamic call stem[/code]