MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Use MACROS in EZT ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
akshaj
Beginner


Joined: 30 Dec 2002
Posts: 12
Topics: 8

PostPosted: Wed May 07, 2003 11:02 am    Post subject: How to Use MACROS in EZT ? Reply with quote

Hi ,
I've a EZT copybook in PDS.How can I code the JCL to use this copybook instead of hardcoding in the program.I'm using the following code and getting errors
Code:
                                                 
//STEP01   EXEC PGM=EZTPA00,REGION=2500K                 
//ERRPRINT DD  SYSOUT=*                                   
//EZTVFM   DD  UNIT=WORK,SPACE=(4096,(100,100))           
//SYSPRINT DD SYSOUT=*                                   
//SYSOUT   DD SYSOUT=*                                   
//PANDD1   DD DSN= PDS WITH EZT COPYBOOK FILE1EZ(FB 80)   
//FILE1    DD DSN=FILE1,                                 
//            AMP=('BUFND=50'),DISP=SHR                   
**                                                       
FILE FILE1                                               
     %FILE1EZ                                             
*                                                         

**

Akshaj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 07, 2003 4:43 pm    Post subject: Reply with quote

akash,

You need to code the following instead of PANDD1

Code:

//PANDD   DD DSN= YOUR PDS WITH EZT COPYBOOK,DISP=SHR


Make sure that copybook name is FILE1EZ

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
akshaj
Beginner


Joined: 30 Dec 2002
Posts: 12
Topics: 8

PostPosted: Thu May 08, 2003 7:10 am    Post subject: Reply with quote

Hi Kolusu ,
I still get an error
*******B006 MACRO SYSTEM - PDS , ERROR IN MACRO FILE
----

my pds details:copyez
MACRO 0 LOCATION 1

EMPLOYEE-REC &LOCATION +


178 A

----
//PANDD DD DSN=PDS NAME,DISP=SHR (FB,80)
//INPUT DD DSN=INPUT,DISP=SHR
**
*LIST OFF
FILE INPUT
%COPYEZ
----

akshaj
Back to top
View user's profile Send private message
akshaj
Beginner


Joined: 30 Dec 2002
Posts: 12
Topics: 8

PostPosted: Thu May 08, 2003 3:28 pm    Post subject: Reply with quote

I feel it depends on the EZT installation in the shop.Some shops allow PANVALET datasets and some will allow PDS's.
But I'm not sure on this though.
My shop has both panvalet libraries and PDS's too.
It works with Panvalet libraries but not with PDS.

If u know details about this please help.


AKshai
Back to top
View user's profile Send private message
akshaj
Beginner


Joined: 30 Dec 2002
Posts: 12
Topics: 8

PostPosted: Fri May 09, 2003 7:15 am    Post subject: Reply with quote

I got the solution.If I type "PDS" instead of "PANDD" the job is working fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group