View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hello,
We are using relase 6.3. sorry for the inconvinence, |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hey Peter,
Thanks for your help.
it has helped me a lot.
Thanks a lot. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
krunalbafna wrote: |
Hey Peter,
Thanks for your help.
it has helped me a lot.
Thanks a lot. |
You are welcome. |
|
Back to top |
|
|
|