Results 1 to 2 of 2

Thread: Rules for COPY statement

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    85

    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.


  2. #2
    Expert Member
    Join Date
    May 2006
    Answers
    114

    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. ====)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact