View previous topic :: View next topic |
Author |
Message |
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
|
Back to top |
|
|
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed May 26, 2004 4:59 am Post subject: |
|
|
Dibakar,
COPY books are expanded only during a cobol compile and if you step through your online program compile JCLs you will note that there is a translator step that scans your program replacing all CICS commands with equivalent COBOL CALL statements.
There are 2 ways (or more ....) using which you can use copy books with the CICS commands. Code all your CICS commands as a member and pass this member to the translator step. This will create the necessary cobol call statements. COPY this member in your program.The only problem you will face here is the number of copy books that you will need to add to your program.This is cumbersome and may not be considered a good programming practice.
Step 2 is using an integrated translator. Hopefully other board members will throw more light on this.
Cheers
Brian |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed May 26, 2004 6:00 am Post subject: |
|
|
Dibakar,
As brian mentioned the copybooks are expanded only during the compilation. But with the new versions of cics and COBOl you can use the new integrated translator to perform compilation and translation in one step. I believe starting with CICS TS V2.2 on wards support this feature.
Check this link
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP3A00/1.2.2?DT=20031106151755
By any chance are you compiling the program thru endevor? If so then endevor has a special library which will first pull in the copy book.
Hope this helps...
cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu May 27, 2004 10:43 pm Post subject: |
|
|
I have CICS 1.3, so I won't get integrated translator. I am not using endeavor either. Thanks for your suggestions.
Diba. |
|
Back to top |
|
|
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
|
Back to top |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Wed Jun 02, 2004 1:10 am Post subject: |
|
|
We use copy books that have CICS commands in them. You run the source copy books through the translator step to generate the copy book that is actually used in your cobol program. Your program usually goes through the precompiler (translator), but this does not process the copy books. The compiler does, that is why the copy books with CICS commands in them must be run through the precompiler (translator). The same is true with DB2. |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Sat Jul 03, 2004 4:24 am Post subject: |
|
|
Sorry,
I was on leave, not that long, and suddenly people containing about 70% exoerience in the team resigned so having a hectic time now. |
|
Back to top |
|
|
|
|