From: <hud...@so...> - 2002-09-05 18:39:09
|
Hi Bill, > Here is the error message I receive: > server2# htcobol -F -L/usr/local/lib w1.cob > w1.s: Assembler messages: > w1.s:226: Error: suffix or operands invalid for `mov' > > Here is the assembler generated (the error being rather obvious): > > .LB_MAIN_PROGRAM_0: > pushl $3 > movl $ww_base0+0 #sec:0, %eax > pushl %eax > > Notice the extraneous "#sec:0" in the movl..... > > And here's the COBOL that causes it. The testing I have done points to > it being something in the "OPEN OUTPOUT" statement. > > INPUT-OUTPUT SECTION. > FILE-CONTROL. > SELECT Student-File ASSIGN TO "GPA.DAT". > SELECT Out-File ASSIGN TO SYS$OUTPUT. I think that the problem is the output name to Out-File (SYS$OUTPUT). Modify this name and it will work. > INPUT-OUTPUT SECTION. > FILE-CONTROL. > SELECT Student-File ASSIGN TO "GPA.DAT". > SELECT Out-File ASSIGN TO SYSOUTPUT. or > INPUT-OUTPUT SECTION. > FILE-CONTROL. > SELECT Student-File ASSIGN TO "GPA.DAT". > SELECT Out-File ASSIGN TO "SYSOUTPUT". or > INPUT-OUTPUT SECTION. > FILE-CONTROL. > SELECT Student-File ASSIGN TO "GPA.DAT". > SELECT Out-File ASSIGN TO external "SYSOUTPUT". Hope this helps. Hudson. |