[Info-vax] COBOL, <gack!> again! Return status.
Arne Vajhøj
arne at vajhoej.dk
Mon Sep 11 16:17:16 EDT 2023
On 9/11/2023 4:12 PM, Brian Schenkenberger wrote:
> On 2023-09-11 19:59:05 +0000, Arne Vajhj said:
>> $ type add2.cob
>> identification division.
>> program-id.add2.
>> data division.
>> working-storage section.
>> 01 res pic 9(9) comp.
>> linkage section.
>> 01 a pic 9(9) comp.
>> 01 b pic 9(9) comp.
>> procedure division using a,b giving res.
>> main-paragraph.
>> compute res = a + b.
>> end program add2.
> I've tried that but compiler pukes on it. I've tried:
>
> MOVE SS$_NORMAL TO RES.
>
> and
>
> COMPUTE RES = SS$_NORMAL *1.
>
> It just doesn't like it.
Move should be fine.
How did you declare RES and how did you declare SS$_NORMAL and
what error did you get?
Arne
More information about the Info-vax
mailing list