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
 

 

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: 6966
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
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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