× 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.



Hello,

I need to call a command that accepts date and time
parameter types(*DATE & *TIME) via QCMDEXC in an RPG
program.

The date & time needs to be the current date/time plus
a fixed number of minutes.

I am extracting the current timestamp into a timestamp
field and then adding the duration.  The part I am
having trouble with is extracting the date and placing
it into a character variable in Job format for the
command string creation.

I think the MOVE fixed opcode should work with *JOBRUN
in factor 1 but was wondering if there is a free
format version that does the same thing as I am trying
to keep all my calcs as free format where possible.

I thought something like the following would work but
am having no luck.

D timestamp        S         Z
D jobdate          S        8A
/free
  timestamp = %timestamp + %minutes( 30 ); <== works

  jobdate  = %date(timestamp:*JOBRUN); <== not working
/end-free

 Any suggestions would be appreciated.

TIA,

-Paul

=====
Help prevent pet overpopulation. Please spay & neuter your pets.
http://www.doghause.com/neuter.html
http://www.fixcats.com

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.