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
 

 

If we can use a copybook in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
sarath16581

New User


Joined: 11 Jun 2005
Posts: 8

PostPosted: Wed Jul 18, 2007 5:09 pm    Post subject: If we can use a copybook in easytrieve
Reply with quote

Hi,

Do anyone know if we can use a copybook in easytrieve? I have 1000 fields and to declare all the fields is a pain. I have a cobol copybbok written for that, but not sure if i can use it here?
Can anyone help me out?

thanks
Sharath
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Jul 18, 2007 8:12 pm    Post subject:
Reply with quote

Code:
MACRO D                                                                 
      ******************************************************************
      *  Both EZTPLUS and COBOL definitions are included to provide a  *
      *  common set of names for both programming languages.           *
      *  EZTPLUS definitions are identified as debugging lines in COBOL*
      *   programs and are treated as comments so long as "DEBUGGING   *
      *   MODE" is not specified in the "SOURCE COMPUTER" paragraph.   *
      *  COBOL definitions are treated as comments in EZTPLUS programs.*
      *                                                                *
      *  To use in EZTPLUS programs, code:                             *
      *   %name                                                        *
      *  To use in COBOL programs, code:                               *
      *   COPY name.                                                   *
      *                                                                *
      ******************************************************************
      *                                                                 
      * PAYMENT               1   50 A                                 
      *                                                                 
      *EZTPLUS definitions...                                           
     &D W-PAYMENT          W                50 A   
     &D W-ACCT-TYPE        W-PAYMENT         1 A   
     &D W-TRANS-NUMB       W-PAYMENT    +1  10 N   
     &D W-ACCT-NUMB        W-PAYMENT   +11  15 A   
     &D W-BILLING-CONTROL  W-PAYMENT   +26  10 A   
     &D W-TRAN-DATETIME    W-PAYMENT   +36   8 P   
     &D *                  W-PAYMENT   +44   6 A   
*C    *COBOL definitions...                         
*C         05 :pfx:acct-type          pic  x(01).   
*C         05 :pfx:trans-numb         pic  9(10).                 
*C         05 :pfx:acct-numb.         pic  x(15).                 
*C         05 :pfx:billing-control    pic  x(10).                 
*C         05 :pfx:tran-datetime      pic s9(15)   comp-3.         
*C         05 filler                  pic  x(06).                 
Back to top
View user's profile Send private message
raj_gdg

New User


Joined: 19 Jul 2007
Posts: 5
Location: bangalore

PostPosted: Thu Jul 19, 2007 2:44 pm    Post subject: re
Reply with quote

Hi Can any one please provide me solution to convert easytrieve copybook to Cobol copybook.

ANy info will be appreciated.


Regards
I am here
Back to top
View user's profile Send private message
sarath16581

New User


Joined: 11 Jun 2005
Posts: 8

PostPosted: Thu Jul 19, 2007 3:09 pm    Post subject: Can u please explain?
Reply with quote

I am not sure i got what this code does? I am a beginner. Could you please explain how to use this code and is this the way to use cobol copybook in easytrieve?

Thanks
Sarath
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Jul 19, 2007 3:18 pm    Post subject:
Reply with quote

Sarath,

Quote:
is this the way to use cobol copybook in easytrieve?


Variable declaration in Easytreive and COBOL is different. You cannot use COBOL copybook in the Easytreive program.
Back to top
View user's profile Send private message
sarath16581

New User


Joined: 11 Jun 2005
Posts: 8

PostPosted: Thu Jul 19, 2007 3:25 pm    Post subject: is this the way to use cobol copybook in easytrieve?
Reply with quote

Hi,

I am aware that variable declaration is diffeferent in easytrieve. But i heard there is a way using which we can convert cobol copybbok into easytrieve declaration. I saw it in one of the discussions in this forum as well, but could not understand it exactly.

Thanks

Sarath
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Jul 19, 2007 3:25 pm    Post subject: Re: Can u please explain?
Reply with quote

sarath16581 wrote:
I am not sure i got what this code does? I am a beginner. Could you please explain how to use this code and is this the way to use cobol copybook in easytrieve?

Both EZTPLUS and COBOL definitions are included to provide a common set of names for both programming languages.
EZTPLUS definitions are identified as debugging lines in COBOL programs and are treated as comments so long as "DEBUGGING MODE" is not specified in the "SOURCE COMPUTER" paragraph.
COBOL definitions are treated as comments in EZTPLUS programs.
To use in EZTPLUS programs, code:
%name
To use in COBOL programs, code:
COPY name.

As said, you can not use a COBOL copybook in EZT, but you can create a record description that can be common to both.
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Thu Jul 19, 2007 7:12 pm    Post subject: Re: re
Reply with quote

raj_gdg wrote:
Hi Can any one please provide me solution to convert easytrieve copybook to Cobol copybook.


Run a search in the CA forum and you will find your answer....

Hint: CBLCNVRT provided by CA
REXX exec
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Thu Jul 19, 2007 7:22 pm    Post subject: Re: re
Reply with quote

raj_gdg wrote:
Hi Can any one please provide me solution to convert easytrieve copybook to Cobol copybook.


Sorry raj, I missed read your message.

IBM has some migration utility (extra cost) for z/os that will convert
EZTP layouts to Cobol copybooks. I have not used the product but know it is called EZTCNVRT. Run a search on GOOGLE for CBLCNVRT and look for the "Microsoft PowerPoint - Updated IBM zSeries TeleClinic - May07.04"
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: Thu Jul 19, 2007 8:33 pm    Post subject:
Reply with quote

Hello,

Please notice that this topic now contains 2 different requests.

One to go from COBOL to ezt and the other to go from ezt to COBOL.

When raj_gdg posted the second question, it probably should have started a new topic. We'll see how this goes and split the 2 questions if it gets too confusing. . .
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm


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