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
 

 

COPH vs COPY command in a COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rohin

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Thu May 29, 2008 3:44 pm    Post subject: COPH vs COPY command in a COBOL program
Reply with quote

Hi,

In one of the existing Cobol programs, I saw command:

COPH LOGACTW.

Where LOGACTW is a copybook.

Could anyone please explain what exactly does COPH do and how is it different from normal cobol COPY command?

Thanks,
Rohin
Back to top
View user's profile Send private message

yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 29, 2008 4:10 pm    Post subject: Reply to: COPH
Reply with quote

I hope it must COPY, not a COPH??? Is this code is runing???
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 29, 2008 4:14 pm    Post subject: Re: Reply to: COPH
Reply with quote

yogeshwar_ade wrote:
I hope it must COPY, not a COPH??? Is this code is runing???


As its in existing code, I wonder how this code is working.
I hope there is no such keyword used in cobol.


Correct me if I am wrong.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu May 29, 2008 4:33 pm    Post subject: Re: COPH
Reply with quote

A capital "H" is South Southeast of a capital "Y" on the keyboard.

Suffice to say this is a typo-error. icon_eek.gif
Back to top
View user's profile Send private message
piyush_is_here
Currently Banned

New User


Joined: 28 May 2008
Posts: 2
Location: NOIDA

PostPosted: Thu May 29, 2008 4:49 pm    Post subject:
Reply with quote

i have never seen anywhere COPH,
plz check the code it can't be compile/run
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 276
Location: Bang,iflex

PostPosted: Thu May 29, 2008 5:02 pm    Post subject:
Reply with quote

HI,

Quote:

Suffice to say this is a typo-error.


That must be Typo error. other wise compile the program and see the result.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 29, 2008 5:12 pm    Post subject:
Reply with quote

vasanthkumarhb wrote:

That must be Typo error. other wise compile the program and see the result.



To avoid these kinds of small typo error, I always make 'HILITE COBOL ON'. If it is COBOL Keyword/Reserve word it will be in RED color (Default Color) else it will be in Green.

Also I hope if you are going to Compile this code it will surely gives Compile error.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 29, 2008 5:58 pm    Post subject:
Reply with quote

Hi,
yogeshwar_ade wrote:
To avoid these kinds of small typo error, I always make 'HILITE COBOL ON'.

Should I say, it could be site specific, I use "HI COB"...


rohin,
Quote:
In one of the existing Cobol programs

if so, you might like to check whether this
Quote:
COPH LOGACTW.
is an "active" statement of the program or not.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Fri May 30, 2008 10:13 am    Post subject: Reply to: COPH command in a COBOL program?
Reply with quote

Anuj D. wrote:
Should I say, it could be site specific, I use "HI COB"...


'HI COB' is nothing but abbreviation of 'HILITE COBOL'.
Back to top
View user's profile Send private message
cvishu

Active User


Joined: 31 Jul 2007
Posts: 136
Location: india

PostPosted: Mon Mar 17, 2014 9:11 pm    Post subject: Reply to: COPH command in a COBOL program?
Reply with quote

HI i know its a very old thread , but curiously i just came accorss a live code that has the same statement COPH followed by a copybook name ( the copybook has a SQL statement).

Any clue as to what COPH does ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2014 9:17 pm    Post subject:
Reply with quote

Hello,

Post the output of a Clean Compile of this statement. Not the entire compile, just the bits concerning this.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Mon Mar 17, 2014 11:19 pm    Post subject:
Reply with quote

Without seeing the output requested by dick, another possibility is that COPH might be a reserved word in some of of pre-compile step.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2014 12:19 am    Post subject:
Reply with quote

Hello,

Searched in the DB2 and CICS manuals and COPH is not found.

Possibly it is some other vendor's "front end" . . .
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Tue Mar 18, 2014 6:46 am    Post subject:
Reply with quote

Did you check the compile listing? Please share the screen shot of that.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Tue Mar 18, 2014 2:38 pm    Post subject: Reply to: COPH command in a COBOL program?
Reply with quote

Quote:
Please share the screen shot of that

No - do not do a screenshot - a cut and paste using the code tags is quicker and more efficient file-size wise.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


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