how to declare date variable in cl programme?

1520 pts.
Tags:
CL
Date variable
Pls tell me how can i declare date variable in my cl programme?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Vendor response.

You might be interested in the <a href=”http://www.powercl.com/xcl/about-xcl”>eXtreme CL</a> category of <a href=”http://www.powercl.com/images/stories/cmdxcldt.html”>Date and Time commands</a>.

Bruce Vining

=================================================

Hello 6r,
<a href=”http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/evfclmst36.htm”>this article explains </a>how to work with variables.
Shortly:
<pre>DCL VAR(&AREA) TYPE(*CHAR) LEN(4) VALUE(BOOK)</pre>

Bye

========================================================

CL doesn’t have a DATE data type, so you can’t. The closest you can get is a *CHAR variable that is big enough to hold whatever date characters you want to put in it.

If you need to process DATE variables with date functions, don’t use CL. It’s not a data processing language — it’s a job control language.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • R0
    very Correct to say but you can use some funuctions like CVTDAT to convert date from one format to another in CL
    85 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following