View previous topic :: View next topic
|
Author |
Message |
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi All,
I have small doubt, as can i use two variables in a varying class of Perform as refer the syntax
PERFORM VARYING WW-TEMP-WK WW-TEMP-HT
FROM 7 BY -1 UNTIL WW-TEMP-HT = 0
OR UNUSE-CHANGE-FOUND
I want to increment both of them at once.I do know that i can perform one variable and make other to refer that value as
PERFORM VARYING WW-TEMP-HT
FROM 7 BY -1 UNTIL WW-TEMP-HT = 0
OR UNUSE-CHANGE-FOUND
SET WW-TEMP-WK TO WW-TEMP-HT.
I just want to know whether first one is possible.
Cheers
Ashwin |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi Aswin
The syntax you have given is invalid.It will give compile time error.
Thanks
Arun |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
You cant give 2 variables after " PERFORM VARYING ...It is not possible. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
But i dont think the AFTER phrase option will solve his problem.
Quote: |
I have small doubt, as can i use two variables in a varying class of Perform as refer the syntax
PERFORM VARYING WW-TEMP-WK WW-TEMP-HT
FROM 7 BY -1 UNTIL WW-TEMP-HT = 0
OR UNUSE-CHANGE-FOUND
I want to increment both of them at once. |
Plz let me know hw come it be possible to increment both the values at once using AFTER phrase.
Thanks
Arun |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi all,
Yes i know that it will give compliation error if i use that, i just thinking if i can set two variables using a set command then why cann't i vary two Variables.
And i never tried this earlier, when i was trying i got a compliation error. So i just want to confirm that can it be possible in any other way.
And using after doesn't satisfy my purpose.
Thanks all for the spending time on this.
Cheers
Ashwin |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Arun,
I didn't mean that AFTER would solve his prob. I said the only way to VARY 2 variables is in a multi-level tbl w/AFTER.
He may be able to solve his problem by subtracting 1 from WW-TEMP-WK in the performed pgraph. |
|
Back to top |
|
|
|