Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Include Copy books in Pre-compile step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 54
Location: Chennai

PostPosted: Sun Mar 27, 2005 7:28 am    Post subject: Include Copy books in Pre-compile step
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    Post subject: Re: Include Copy books in Pre-compile step
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    Post subject:
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    Post subject: Re: Include Copy books in Pre-compile step
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: 54
Location: Chennai

PostPosted: Mon Mar 28, 2005 10:25 pm    Post subject:
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    Post subject: Re: Include Copy books in Pre-compile step
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    Post subject: Re: Include Copy books in Pre-compile step
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: 54
Location: Chennai

PostPosted: Tue Mar 29, 2005 7:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us