Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Rules for COPY statement

This is a discussion on Rules for COPY statement within the MainFrame forums, part of the Software Development category; Can someone specify the rules one should follow while using COPY statement in COBOL program. I have just started my program in this and if this is provided I would ...

Go Back   Geeks Talk > Software Development > MainFrame
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-08-2006
Contributing Member
 
Join Date: May 2006
Posts: 88
Thanks: 0
Thanked 10 Times in 9 Posts
norman is on a distinguished road
Smile Rules for COPY statement

Can someone specify the rules one should follow while using COPY statement in COBOL program. I have just started my program in this and if this is provided I would have it as a cross reference while coding.
Reply With Quote
The Following User Says Thank You to norman For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 08-14-2006
Expert Member
 
Join Date: May 2006
Location: New York, USA
Posts: 118
Thanks: 0
Thanked 6 Times in 4 Posts
RyanJames is on a distinguished road
Re: Rules for COPY statement

Some of the rules for COPY statement are given below:
1. A COPY statement can occur anywhere a character-string or a separator can occur except that a COPY statement must not occur within another COPY statement.
2. If the word COPY appears in a comment-entry or in the place where a comment entry can appear, it is considered part of the comment-entry.
3. The general syntax is
COPY {Textname} [{OF/IN} {Library name}] [REPLACING {Textword1 BY Textword2}...]
In this when TextWord1 is Pseudo Text it must not be null, nor can it consist solely of either the character space(s) or comment lines.
4. Also when TextWord2 is Pseudo Text it can be null. Null Pseudo Text is indicated by four equal signs (e.g. ====)
Reply With Quote
Reply

  Geeks Talk > Software Development > MainFrame

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
C/C++ Programming : Limitations of switch statement Lokesh M C and C++ 1 07-17-2007 03:38 AM
Which RDBMS follows all CODD rules fred Oracle 2 02-09-2007 06:26 AM
Deep copy janelyn ASP.NET 1 08-03-2006 02:18 PM
Someone provide key for locking rules sripri Oracle 0 07-17-2006 05:23 PM
GeekInterview Site and Forum rules admin Site News & Announcements 0 05-21-2006 10:53 AM


All times are GMT -4. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved