From: David E. <de...@us...> - 2007-05-21 00:52:10
|
Massimo Spataro wrote: > I have compile with this option > > ./configure --enable-mfcomp --enable-lockserv > --with-readline --enable-debug Note that TC does NOT support ALL MF options. Actually TC only supports only two (2) MF options, the 'DD_' prefix and 'DISPLAY/ACCEPT AT xxyy'. > I have this section on my old source MF and > this create error on compile > > This is source from line 1: > > identification division. > program-id. prova01. > environment division. > configuration section. > special-names. > console is crt > crt status is tasto-fun > decimal-point is comma. > > #htcobol prova01.cbl > prova01.cbl:3: error: syntax error, on or before '*' > The comment line is wrong on column 7 ? > I have move comment line to 0 column and compiler > stop with this error: TC supports both the standard (fixed source) format and the open source format. TC will use the compile time configuraton file 'htcobolrc' to determine which format used. How can you fix this problem : 1) Change the configuraton file, 'htcobolrc'. #PGM_FORMAT_FREE PGM_FORMAT_FIXED OR 2) Over-ride the configuraton file 'htcobolrc' using the command line option '-F'. > prova01.cbl: 9: error: syntax error, on or before 'console' The 'console is crt' special-names clause is not supported (or required) . > file-control. > select gmwk assign to disk > organization indexed > access dynamic > lock manual <----error line 17 > record key wk-key > status fstatus. > select gmrt assign to disk > organization indexed > access dynamic > lock manual <----error line 21 > record key rt-key > alternate record key rt-akey1 = > rt-soc rt-wk rt-cod rt-fase rt-trk > <-------error line 25 - 26 > status fstatus. > prova01.cbl:14: error: syntax error, on or before 'disk' select ... assign to disk ... fd ... value of file-id ... This is a BUG. I will fix this on CVS. > prova01.cbl:17: error: syntax error, on or before 'lock' The 'lock manual' clause is NOT part of the COBOL-85 standard. Note that there is very limited support for file or record LOCKS in TC. > prova01.cbl: 25: error: syntax error, on or before '=' The 'alternate record key identifier-1 = { identifier-2 ... identifier-n }' clause is NOT part of the COBOL-85 standard. I have not encountered this kind syntax so I don't know how to FIX it. > I have talk with cobol programmer and the programm is write on > MF Ansi85 specification but i not have find info into docs for > check dieffrence from tinycobol and this test module write for check > compatibility. Yes, MF is COBOL-85 compliant. However the source uses a lot of MF specific extentions. Hope this helps. |