Page 1 of 1

Re: how to display the current value of a set

Posted: Mon Oct 02, 2017 8:33 pm
by Manassaldi
Hi, you can try this..

set Yr /1*14/;
scalar YrOrd;
loop(Yr,
YrOrd=ord(Yr);
display YrOrd;
);

or

set Yr /1*14/;
parameter YrOrd(Yr);
loop(Yr,
YrOrd(Yr)=ord(Yr);
);

display YrOrd;

Re: how to display the current value of a set

Posted: Sun Mar 25, 2018 2:40 pm
by Vickery
Manassaldi that did not work for me. :(

Re: how to display the current value of a set

Posted: Mon Mar 26, 2018 8:07 am
by bussieck
Manassaldi code had no issues and addresses your original question. Why don't you tell us what does not work for you.

-Michael