[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

#include files in SQR (Unix)



Hello Everyone!

Background:
   Conversion from SQR 3.0 in VAX/VMS to SQR 4.3 Unix/Solaris.

Problem:
In our VAX/VMS SQR programs, we have #include directives which look
like this

#include 'oms_sqr:rp_header.sh'
#include 'oms_sqr:rp_footer.sh'
....
....

When we compile the program, it knows how to translate
the environment logical oms_sqr to the correct subdirectory.

In the converted program, we changed the above to:

#include '$OMS_SQR/rp_header.sh'
#include '$OMS_SQR/rp_footer.sh'
....
....

When we tried to compile the program, we got the error:

(SQR 4713) Cannot open the #INCLUDE file: '$OMS_SQR/rp_fatal.sh'
(2): No such file or directory

We have defined the environment variable OMS_SQR (exported it also).
The test in Unix (we're using ksh) gives the following:

$ echo $OMS_SQR
/users/sqr/appl
$

It seems that compiling does not translate the $OMS_SQR to the
proper subdirectory.

Any suggestions on how to go about the problem above?

Thnx.