× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a question regarding using REXX as a command processing program, and
passing date data types from a command.

 

In a command/CL processing environment, date data types are passed in CYMD
format. In a command/REXX processing environment, dates appear to be passed
in the form they are typed, not in a standardized format.

 

The REXX code to receive the date parameter is:

Parse arg 'COSTDATE(' costdate ')'

 

The command defines costdate as a date data type.

 

If I run the command with costdate(090105), the data is passed as '090105'
to REXX; costdate('09/01/2005') is passed as '09/01/2005'. In both instances
a CL program would receive '1050901'.

 

What techniques do you use when using dates passed from a command to a REXX
command processing program? Is there a standard API I can call to perform
the conversion?

 

Thanks,

Loyd

 

 

Loyd Goodbar

Senior programmer/analyst

BorgWarner

E/TS Water Valley

662-473-5713

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.