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

can we use copybook(s) in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
im_tanmoy

New User


Joined: 10 Sep 2005
Posts: 3
Location: Pune

PostPosted: Sat Sep 10, 2005 1:02 am
Reply with quote

Hello Friends,


Could anyone please tell me can we use copybook(s) in easytrieve program ? If No then why?


Tanmoy
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Sep 16, 2005 7:37 am
Reply with quote

Easytrieve does not have copy books as such. It uses macros which amounts to the same thing. Macros allow replacing data.
Back to top
View user's profile Send private message
vanderman

New User


Joined: 21 Sep 2005
Posts: 2

PostPosted: Wed Sep 21, 2005 4:57 pm
Reply with quote

I really got how to write the macro and the expression in the program, but how to write JCL to compile?
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Sep 23, 2005 7:10 am
Reply with quote

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
View user's profile Send private message
vanderman

New User


Joined: 21 Sep 2005
Posts: 2

PostPosted: Fri Sep 23, 2005 8:45 pm
Reply with quote

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
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Sep 23, 2005 9:46 pm
Reply with quote

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
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 Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
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
Search our Forums:

Back to Top