Skip to main content

Is there a way to retrieve compiler directives from a .int file?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Is there a place in a .int file where it shows the compiler directives used?

Resolution:

There is no direct way to retrieve directives from a .int file.  If the .int was compiled with a listing output (.lst file) and the SETTINGS directive was used, the .lst file will contain the directives.  The time stamps (ls -l) on the .lst and .int files will be identical or very close in time.  That permits the user to infer the directive settings shown in the .lst file were the ones used to compile the .int.

Example:

cd

cp $COBDIR/demo/tictac/tictac.cbl ./

cob -P tictac.cbl -C SETTINGS

ls -l tictac.*

-rw-r--r--  1 username usergrp    8739 2006-08-09 15:05 tictac.cbl

-rw-r--r--  1 username usergrp  51968 2006-08-09 15:06 tictac.idy

-rw-r--r--  1 username usergrp    3840 2006-08-09 15:06 tictac.int

-rw-r--r--  1 username usergrp  14801 2006-08-09 15:06 tictac.lst

Old KB# 4504