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

If we can use a copybook in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Jul 18, 2007 8:12 pm
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
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
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: 1436
Location: Bangalore,India

PostPosted: Thu Jul 19, 2007 3:18 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Thu Jul 19, 2007 3:25 pm
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
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
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

Moderator Emeritus


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

PostPosted: Thu Jul 19, 2007 8:33 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
Search our Forums:

Back to Top