*UTCD field type

120 pts.
Tags:
*UTCD
AS/400 Dataset
AS400 Data type
iSeries V6R1
Hi All,

We have just upgraded from V5.4 to V6.1 and have run into a problem with a program that does a sndpgmmsg of CPF1241.  The date and time parameters are data types *UTCD and *UTCT.  What should be used to populate those parameters when sending the message?  Everything I've tried so far gives me strange date and time results.  The string is SNDPGMMSG  MSGID(CPF1241) MSGF(QSYS/QCPFMSG) MSGDTA(&JOBNAME *CAT &USER *CAT &JOBNBR *CAT &B8 *CAT &B8 *CAT &B10 *CAT &DATE *CAT &TIME) TOMSGQ(&USER) MSGTYPE(*INFO)   where B8 and B10 are blank place holders.

Thanks for any help!

Carolyn

 

 



Software/Hardware used:
iSeries V6.1

Answer Wiki

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

Discuss This Question: 3  Replies

 
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
  • TomLiotta
    In general, the "objects" that are needed are 8-byte system date time stamps. You can review examples of those most easily by experimenting with the Convert Date and Time Format (QWCCVTDT) API and specifying {*DTS} as the input or output format depending on the direction you're testing. Apparently, these are also needing to be UTC values. You might review various ILE CEE* date/time APIs such as Get Universal Time Coordinated (CEEUTC) API and Get Offset from Universal Time Coordinated to Local Time (CEEUTCO) API. That should at least get you going in a direction. I'll see if I can track down an example, but it probably won't be for a couple days at best. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    BTW, you can use a temporary workaround by sending x'0000000000000000' for the values -- 8 bytes of binary zeros. That should give the "*N" value in any resulting text until you can put real values in. Tom
    125,585 pointsBadges:
    report
  • CLKelly
    Tom, Thanks for your responses. According to IBM the best thing to do is create a copy of the message as it is in V5R4 in another message file add point the program to that message. Since this is in a 3rd party program that's what I did. It wasn't worth it to me to spend the time playing with the APIs. Carolyn
    120 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