Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Usage Parm clause in Ezt.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Wed Jan 12, 2011 9:17 am    Post subject: Usage Parm clause in Ezt.
Reply with quote

Hi,
I want to pass values using my JCl while calling Eazytrieve code.

May you guide in eazytrieve how the value can be accepted and what coding methodoly i need to follow.

Regards,
krunal
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 12, 2011 11:11 am    Post subject:
Reply with quote

Hello,

Which release of Easytrieve is being used?

If you want this running quickly, suggest you place the parameter data in a file or pds member and simply read it into the program at the beginning.

I don't have access to any of my Easytrieve "stuff" just now . . .
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Wed Jan 12, 2011 11:15 am    Post subject:
Reply with quote

I am using Easytrieve 6.2 release.

I am trying with data in PDS member or data in file, But the requirement is for reading the values passed from Parameters.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 12, 2011 11:20 am    Post subject:
Reply with quote

Hello,

Someone in your organization needs to realize that 6.2 has not been supported for years.

I don't know if i have any 6.2 material anymore. . . but i'll look . . .
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Wed Jan 12, 2011 11:57 am    Post subject:
Reply with quote

Hello,
We are using relase 6.3. sorry for the inconvinence,
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 12, 2011 12:09 pm    Post subject:
Reply with quote

Code:

//STEP0001 EXEC  PGM=EZTPA00,                                       
//             PARM='your parameter'



PARMDATA   W    80 A                                                   
PARMLENG   PARMDATA       2 B                                         
PARMFIELD  PARMDATA +02  78 A       


CALL EZTPX01 USING(PARM-REGISTER PARMDATA)                                   


EZTPX01 is a called subprogram used to interrogate a PARM coded on a JCL
EXEC statement. It is distributed with CA-Easytrieve/Plus.
EZTPX01 requires two parameters, the system defined PARM-REGISTER, and a
user defined input/output field. The input/output field must consist of a 2-byte
binary field immediately followed by a character portion to contain the actual
PARM information.
You are responsible for placing the maximum length you expect for the PARM
information (the character portion) into the 2-byte binary field before calling
EZTPX01. EZTPX01 moves your PARM data from your JCL EXEC statement into
the character portion of your input/output field and updates the length in the 2-
byte binary portion.
If the PARM data is larger than the maximum length you specified, it is truncated
on the right and the maximum length you defined is retained. If the PARM data
is shorter than the length you specified, the length is updated to reflect the actual
length of the PARM data.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Wed Jan 12, 2011 12:38 pm    Post subject:
Reply with quote

Hey Peter,
Thanks for your help.
it has helped me a lot.
Thanks a lot. icon_biggrin.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 12, 2011 12:46 pm    Post subject:
Reply with quote

krunalbafna wrote:
Hey Peter,
Thanks for your help.
it has helped me a lot.
Thanks a lot. icon_biggrin.gif


You are welcome.
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 Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us