Error check for empty set or parameter

I load a parameter from a txt file. I then want to know of the parameter is empty, e.g. the text file didn’t have any values. Is there a simple way to do this?

Thanks
Dewayne

Dewayne Delk
Lead Analyst - Modelling
Global Coal Market Research

T +1 410 295 4213
F +1 410 295 4301
E dewayne.delk@woodmac.com


Wood Mackenzie
One Park Place
Suite 575 T +44 (0)131 243 4400
Annapolis, MD 21401 E energy@woodmac.com
United States W www.woodmac.com

Global Offices

Australia - Brazil - Canada - China - India - Japan - Malaysia - Russia - Singapore - South Korea - United Arab Emirates - United Kingdom - United States

P Consider the environment and business costs. Please don’t print this e-mail unless you really need to.






This e-mail transmission is strictly confidential. It is intended solely for the
addressee. If you are not the addressee, please delete the e-mail and notify us
by return email or by contacting our systems administrator on +44 131 243 4444
forthwith.



Moreover if you are not the addressee, you must not copy, use, act or rely on,
disclose or distribute this e-mail. Wood Mackenzie Limited accepts no
responsibility or liability for any harm to your, or any third party’s, system
or data caused by this e-mail or its attachments or any viruses or similar
contained in it.



Wood Mackenzie Limited may monitor and record e-mails and their content passing
through its network.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\

The CARD function will return the number of values stored.

–Paul


On Tue, Jun 25, 2013 at 12:03 PM, Dewayne Delk wrote:

I load a parameter from a txt file. I then want to know of the parameter is empty, e.g. the text file didn’t have any values. Is there a simple way to do this?

Thanks
Dewayne

Dewayne Delk
Lead Analyst - Modelling
Global Coal Market Research

T +1 410 295 4213
F +1 410 295 4301
E dewayne.delk@woodmac.com


Wood Mackenzie
One Park Place
Suite 575 T +44 (0)131 243 4400
Annapolis, MD 21401 E energy@woodmac.com
United States W www.woodmac.com

Global Offices

Australia - Brazil - Canada - China - India - Japan - Malaysia - Russia - Singapore - South Korea - United Arab Emirates - United Kingdom - United States

P Consider the environment and business costs. Please don’t print this e-mail unless you really need to.





This e-mail transmission is strictly confidential. It is intended solely for the
addressee. If you are not the addressee, please delete the e-mail and notify us
by return email or by contacting our systems administrator on +44 131 243 4444
forthwith.



Moreover if you are not the addressee, you must not copy, use, act or rely on,
disclose or distribute this e-mail. Wood Mackenzie Limited accepts no
responsibility or liability for any harm to your, or any third party’s, system
or data caused by this e-mail or its attachments or any viruses or similar
contained in it.



Wood Mackenzie Limited may monitor and record e-mails and their content passing
through its network.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.





\

Paul van der Eijk
GAMS Development Corporation
Tel : (202) 342-0180 Fax : (202) 342-0181
Email: pvandereijk@gams.com
Web : http://www.gams.com


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\

Thanks Paul. Worked well.



Dewayne



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Paul Van der Eijk
Sent: Tuesday, June 25, 2013 2:30 PM
To: gamsworld@googlegroups.com
Subject: Re: Error check for empty set or parameter



The CARD function will return the number of values stored.

–Paul



On Tue, Jun 25, 2013 at 12:03 PM, Dewayne Delk wrote:

I load a parameter from a txt file. I then want to know of the parameter is empty, e.g. the text file didn’t have any values. Is there a simple way to do this?



Thanks

Dewayne



Dewayne Delk
Lead Analyst - Modelling
Global Coal Market Research



T +1 410 295 4213
F +1 410 295 4301
E dewayne.delk@woodmac.com




Wood Mackenzie
One Park Place
Suite 575 T +44 (0)131 243 4400
Annapolis, MD 21401 E energy@woodmac.com
United States W www.woodmac.com

Global Offices

Australia - Brazil - Canada - China - India - Japan - Malaysia - Russia - Singapore - South Korea - United Arab Emirates - United Kingdom - United States



P Consider the environment and business costs. Please don’t print this e-mail unless you really need to.











This e-mail transmission is strictly confidential. It is intended solely for the

addressee. If you are not the addressee, please delete the e-mail and notify us

by return email or by contacting our systems administrator on +44 131 243 4444

forthwith.







Moreover if you are not the addressee, you must not copy, use, act or rely on,

disclose or distribute this e-mail. Wood Mackenzie Limited accepts no

responsibility or liability for any harm to your, or any third party’s, system

or data caused by this e-mail or its attachments or any viruses or similar

contained in it.







Wood Mackenzie Limited may monitor and record e-mails and their content passing

through its network.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.





\

Paul van der Eijk
GAMS Development Corporation
Tel : (202) 342-0180 Fax : (202) 342-0181
Email: pvandereijk@gams.com
Web : http://www.gams.com


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.




This e-mail transmission is strictly confidential. It is intended solely for the
addressee. If you are not the addressee, please delete the e-mail and notify us
by return email or by contacting our systems administrator on +44 131 243 4444
forthwith.



Moreover if you are not the addressee, you must not copy, use, act or rely on,
disclose or distribute this e-mail. Wood Mackenzie Limited accepts no
responsibility or liability for any harm to your, or any third party’s, system
or data caused by this e-mail or its attachments or any viruses or similar
contained in it.



Wood Mackenzie Limited may monitor and record e-mails and their content passing
through its network.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\