Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

use of copy verb in cobol and cics program

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

New User


Joined: 11 Sep 2004
Posts: 1

PostPosted: Mon Sep 13, 2004 6:47 pm    Post subject: use of copy verb in cobol and cics program
Reply with quote

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

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Sep 13, 2004 10:05 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 0 Tue Jan 17, 2017 4:26 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us