Hi,
I am new to assembler.
Please help with the following points:
1. I am trying to call an assembler prog PROGB from a COBOL prog PROGA.
In PROGA
Code:
CALL PROGB USING WS-PARMDATA
END-CALL
WS-PARMDATA is defined as pic x(10) in working storage.
In PROGB
Code:
PROGB CSECT
STM 14,12,12(13)
BALR 12,0
USING *,12
ST 13,SAVE+4
LA 13,SAVE
WTO 'START PROGB'
L 2,0(1)
USING PARMDATA,2
WTO 'END PROGB'
EXIT L 13,SAVE+4
LM 14,12,12(13)
BR 14
SAVE DS 18F
PARMDATA DS CL10
END PROGB
Just trying to set the addressabilty of the passed parameter but it is abending with a S0C4 when trying to execute L 2,0(1).
How can I correct this or what is the correct way to pass a parameter to an assembler routine?
2. Can I use WTO to display the value of a variable? If not is there any other way this can be done.