IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to use copy verb in cobol


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top