Posted: Thu Oct 23, 2003 11:12 am Post subject: Include members for PLI Compiler
Hi,
I am trying to compile my PLI modules with the LE compiler using the step below in a proc. I am passing the SYSIN parameter in the JCL.
The error i am getting is that the include members in the PLI module are not getting expanded first so that the identifiers are not recognised. I tried passing the include member datasets using INCLLIB, INCLUDE, CLIB ... but it does not recognise it. I check the IBM sites and other documents but found the examples were small modules with the entire module in the SYSIN parameter. I used a small module with no copy members and it compiled fine, but how to compile those which have a copy member???
When we want to include the SQL Preprocessor, what do we do? Reading from the link your gave, i tried the following but did not work.
MACRO,SQL
MACRO,PP(SQL)
PP(MACRO,SQL)
I also tried STDSQL (Read this somewhere else)
However, the compiler says "The following string is not recognised as a valid option keyword and is ignored" -- for SQL, PP and STDSQL
Any comments from the expert? _________________ Thanks & Regards,
Manoj.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri Oct 24, 2003 11:14 am Post subject:
Manoj,
To use the PL/I SQL Preprocessor, you need to Specify the following option when you compile your program.
Code:
PP(SQL('options'))
This compiler option indicates that you want the compiler to invoke the PL/I SQL preprocessor. Specify a list of SQL processing options in the parenthesis after the SQL keyword. The options can be separated by a comma or by a space.
ex:
Code:
PP(SQL('DATE(USA),TIME(USA)')
tells the preprocessor to use the USA format for both DATE and TIME data types.
Btw my shop does not have PL/I and I am not an expert in PL/I. It is just that I could read the manuals in depth.
The previous link I provided ALSO explains about SQL preprocessor. Here is the link which explains about SQL preprocessor. In this link read the section 2.3.1 Programming and compilation considerations carefully
An aftertought, I am using the LE370 PLI Compiler 5688-235 V1R1M1. Is it possible that this compiler does not have this option and i would have to have a separate precompile step? _________________ Thanks & Regards,
Manoj.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum