| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
rajeshyou
Joined: 11 Sep 2004
Posts: 1
|
| Posted: Mon Sep 13, 2004 6:47 pm Post subject: use of copy verb in cobol and cics program |
|
|
Dear friends
i have got a query on copy verb .how does it actually work.
when we use copy verb in the cobol program we use it for code replacement.
whereas when we use the same copy verb in cics-cobol application we
use it for fetching the mapset from the load library .so here we are not using it for code replacement. can anybody clarify this query.
thanks
Raj |
|
| Back to top |
|
mmwife
Joined: 30 May 2003
Posts: 1508
|
| Posted: Mon Sep 13, 2004 10:05 pm Post subject: |
|
|
Hi Raj,
If I'm reading your post correctly, the answer is that the copy stmt basically moves text from the copylib to the source pgm at compile time.
So, the text could contain data definitions or executable code or comments. So long as the text is syntactically correct, the pgm will compile successfully.
Copy stmts are also permitted in the COBOL file section. I've seen FD stmts included that way. I'm not sure about using COPY in any of the earlier sections/divisions. |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|