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

Usage Parm clause in Ezt.


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 12, 2011 11:11 am
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 12, 2011 11:20 am
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 12, 2011 12:09 pm
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 12, 2011 12:46 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts To search DB2 table based on Conditio... DB2 1
No new posts STEM usage in REXX CLIST & REXX 14
Search our Forums:

Back to Top