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



Others have chimed in overnight, but here is my take on each of them:

1 - it is a job CCSID issue, not a field CCSID issue. You have to change the job which you tried.

2 - The only thing I can think of here is a translation issue. What is the CCSID of your source member. If you have source that is not in CCSID 1141 and you let the job translate it, you may be getting characters you don't expect.

3 - So in 1144 it appears to take your key? That means that you are probably on the right path here. Something in your sql is returning nulls. It could be the json, it could be the http call. Someone else has explained the basics of null indicators. I would put null indicators on every field and examine what you get back. It may give you a clue as to what is wrong. There is plenty of information out there about using null indicators. https://enskill.com/embedded-sql-and-nulls/

On Wed, 2020-03-04 at 00:00 +0100, Giovanni Arturi wrote:
Hi Kevin
I tried to read the discussion in RPG400 ;
i tried :

1. to set DCL-S fieldname datatype CCSID(37) , but i receive error in compiling (i’m run V7r2 ) !!

2. I have tried with chgjob CCSID 1141 and when i run the pgm i don’t receive error but the WebService answer with “API_KEY wrong”, but the API_KEY is correct , i tried with Postman (with the same data)

3. I Have tried with chgjob CCSID 1144 (Italian CCSID) and now i receive error that says “An indicator variable is required”

Any suggestion ?
Thanks

Da: Kevin Bucknum [mailto:Kevin@xxxxxxxxxxxxxxxxxxx]
Inviato: martedì 3 marzo 2020 18:29
A: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: giovanni.arturi@xxxxxxxxx
Oggetto: Re: Help with Consuming A REST Web Service Using SQL And POST from ITJungle

You can't use the sql http functions with a job ccsid of 65535. https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqhttpoverview.htm


There was a discussion this morning on the RPG400 list that discusses this same error.




[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com



CONFIDENTIALITY NOTICE

This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.