IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Include Copy books in Pre-compile step


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Sun Mar 27, 2005 7:28 am
Reply with quote

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
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Mon Mar 28, 2005 6:28 am
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Mon Mar 28, 2005 7:41 am
Reply with quote

Why not you translate first, before precompiling?
Back to top
View user's profile Send private message
Vijay Bhadauria

New User


Joined: 28 Mar 2005
Posts: 8

PostPosted: Mon Mar 28, 2005 4:30 pm
Reply with quote

Include <copybook name> should work as copy book using Include gets resolved during Precompilation.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Mon Mar 28, 2005 10:25 pm
Reply with quote

thanks to die7nadal and Vijay Bhadauria for advicing but sorry yar EXEC INCLUDE statement is not working.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Mon Mar 28, 2005 10:39 pm
Reply with quote

Can you be more specific are you getting abend in Precompiler Step or Translation step or Compilation Step.
Back to top
View user's profile Send private message
Vijay Bhadauria

New User


Joined: 28 Mar 2005
Posts: 8

PostPosted: Tue Mar 29, 2005 2:07 pm
Reply with quote

Hi,
Can you please send snap shot of the error.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Tue Mar 29, 2005 7:01 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top