Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to use copy verb in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
shubu
Warnings : 1

New User


Joined: 25 Sep 2006
Posts: 1

PostPosted: Tue Nov 14, 2006 11:21 am    Post subject: how to use copy verb in cobol
Reply with quote

hi!!

how can we use copy verb in a cobol program

I made a member of pds with the entries to copy into my program, and wrote

COPY file-name

it throws error COPY verb cannot b found

help!!!
Back to top
View user's profile Send private message

ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Tue Nov 14, 2006 3:57 pm    Post subject:
Reply with quote

whre did u make this entry ...... in workign storage rght ????
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Nov 14, 2006 4:45 pm    Post subject: Re: how to use copy verb in cobol
Reply with quote

you can use the COPY compiler directive STATEMENT in the procedure division.

COPY is not a verb. how have you formated your copy STATEMENT.

Maybe your error (since you did not bother to post it) means the copy text was not found. Are your libraries in the SYSLIB?
Back to top
View user's profile Send private message
vijay_bn79

New User


Joined: 20 Nov 2006
Posts: 48
Location: Hyderabad

PostPosted: Mon Nov 20, 2006 7:16 pm    Post subject:
Reply with quote

Hi..,


if you are using copy book means while compliling you should give PDS of that COPY BOOK

becouse the copy books will expand during the Compilation, so if that PDS is not givng in the SYSLIB, then it will file

example:-

//***********************************************************
//COBLE EXEC PGM=IGYCRCTL,REGION=4096K,
//STEPLIB DD DSN=&CMP,DISP=SHR
//SYSIN DD DSN=S91234.DEVE.COBOL(&MEMBER),DISP=SHR
//SYSLIB DD DSN=SYS1.SCEESAMP,DISP=SHR
// DD DSN=S91234.DEVE.COBCOPY,DISP=SHR


IN this exaple S91234.DEVE.COBOL is for the cobol program
S91234.DEVE.COBCOPY this is for the COPYBOOK

Thanks
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm
No new posts VBS to VB in COBOL and JCL srajendran2 COBOL Programming 12 Fri Jun 01, 2018 3:04 am
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts SYSADATA - COBOL - Structure displace... ganasrinivasan COBOL Programming 3 Thu May 24, 2018 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us