View previous topic :: View next topic
|
Author |
Message |
sarath16581
New User
Joined: 11 Jun 2005 Posts: 8
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
raj_gdg
New User
Joined: 19 Jul 2007 Posts: 5 Location: bangalore
|
|
|
|
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 |
|
|
sarath16581
New User
Joined: 11 Jun 2005 Posts: 8
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
sarath16581
New User
Joined: 11 Jun 2005 Posts: 8
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
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 |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|