View previous topic :: View next topic
|
Author |
Message |
im_tanmoy
New User
Joined: 10 Sep 2005 Posts: 3 Location: Pune
|
|
|
|
Hello Friends,
Could anyone please tell me can we use copybook(s) in easytrieve program ? If No then why?
Tanmoy |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
Easytrieve does not have copy books as such. It uses macros which amounts to the same thing. Macros allow replacing data. |
|
Back to top |
|
|
vanderman
New User
Joined: 21 Sep 2005 Posts: 2
|
|
|
|
I really got how to write the macro and the expression in the program, but how to write JCL to compile? |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
Macros can be either inline or a macro library. The macro library can be a Panvalet library, VSAM or a PDS. You will need to talk to your systems administrator. To use an inline macro use the folllowing after the EXEC EZTPA00 statement:
LIST OFF
MSTART macro1
MACRO macro1
macro1 cards
MEND
MSTART macro2
MACRO macro2
MEND
LIST ON
program |
|
Back to top |
|
|
vanderman
New User
Joined: 21 Sep 2005 Posts: 2
|
|
|
|
You mean when using an inline macro, I shall write down these parameters and declare the macro before my program? And then in the JCL, using the EXEC EZTPA00 to run the my program?
And I have the problem when I use macro library, in my JCL I used a PDSDD to declare my macro library just like samples in hand. Does this mean my macro library is PDS? What about other kinds of storage? |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
The macro library is defined in the options table by the administrator of eztrieve plus. It may be a PDS. But the inline macros will work regardless of how the macro library is defined. The macros follow the exec eztpa00 statement and before the program. The ddname of the macro library is set up in the options table. |
|
Back to top |
|
|
|