Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
can we use copybook(s) in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: can we use copybook(s) in easytrieve
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us