View previous topic :: View next topic
|
Author |
Message |
shubu Warnings : 1 New User
Joined: 25 Sep 2006 Posts: 1
|
|
|
|
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 |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
whre did u make this entry ...... in workign storage rght ???? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
vijay_bn79
New User
Joined: 20 Nov 2006 Posts: 48 Location: Hyderabad
|
|
|
|
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 |
|
|
|