View previous topic :: View next topic
|
Author |
Message |
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
i use DSNHPC as the pre-compiler for my DB2-CICS-Cobol pgm, i want to use CICS map variable in my SQL statements but copy books of cics are expanded only in translation step,
my question is how to include these cics copy books in pre-compile step. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
rsshanmugam wrote: |
i use DSNHPC as the pre-compiler for my DB2-CICS-Cobol pgm, i want to use CICS map variable in my SQL statements but copy books of cics are expanded only in translation step,
my question is how to include these cics copy books in pre-compile step. |
Did you try the INCLUDE Cobol Statement, I havent tried but just guessing. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Why not you translate first, before precompiling? |
|
Back to top |
|
|
Vijay Bhadauria
New User
Joined: 28 Mar 2005 Posts: 8
|
|
|
|
Include <copybook name> should work as copy book using Include gets resolved during Precompilation. |
|
Back to top |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
thanks to die7nadal and Vijay Bhadauria for advicing but sorry yar EXEC INCLUDE statement is not working. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
Can you be more specific are you getting abend in Precompiler Step or Translation step or Compilation Step. |
|
Back to top |
|
|
Vijay Bhadauria
New User
Joined: 28 Mar 2005 Posts: 8
|
|
|
|
Hi,
Can you please send snap shot of the error. |
|
Back to top |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
sorry yar iam getting error in pre-compilation step, previously i told copy books are expanded in translation but it is not so it is expanded in compilation step only.
so anyone please tell me how to expand copy books in pre-compilation step.(note:- EXEC INCLUDE for copy books is not working)
i made a temprory solution by copying all the copy book variables and i appended it in the dcl member that worked properly but anyone please help how to do it in a proper way. |
|
Back to top |
|
|
|