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: 6968
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. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

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