|
It's not something you change in the program, it has to be at the job
level. Do a chgjob ccsid(37) - or whatever ccsid you want to use - before
you run the program.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqhttpoverview.htm
If your system is running 65535 you should probably look at the pros and
cons of changing it. Bruce Vining has a nice write up on it at the IBM
website.
https://www.ibm.com/support/pages/what-impact-changing-qccsid-shipped-65535-another-ccsid
On Mon, 2020-03-02 at 22:12 +0000, Kerwin Crawford via RPG400-L wrote:
I am looking at the program and am not sure where to put it. I have dried
a few places but did not work. Any ideas on where to put it?
I assume it is on this statement
exec sql select * into :latitude, :longitude
from json_table(systools.httpgetclob(:URL, ''),
'lax $.result.addressMatches[*]'
columns(
Latitude varchar(15) path '$.coordinates.y',
Longitude varchar(15) path '$.coordinates.x')
empty on error);
I have done it on sql scripts before. Usually in the select area like
this.
SELECT ENTRY_TIMESTAMP,
JOB_NUMBER CONCAT '/' CONCAT RTRIM(JOB_USER) CONCAT '/' CONCAT
RTRIM(JOB_NAME) AS JOB_NAME,
REMOTE_ADDRESS,
rtrim(cast(cast(substring(entry_data,2,10) as VARCHAR(10) for bit
data) as varchar(10) ccsid 37)) as User_Name
FROM TABLE(qsys2.display_journal(
'QSYS', 'QAUDJRN', -- Journal library and name
STARTING_RECEIVER_NAME => '*CURAVLCHN',
journal_entry_types => 'PW', -- Journal entry types
starting_timestamp => CURRENT TIMESTAMP - 48 HOURS)) -- Time
period
P#
Kerwin
IBMi Systems/Applications Programmer
-----Original Message-----
From: Kevin Bucknum [mailto:
<mailto:Kevin@xxxxxxxxxxxxxxxxxxx>
Kevin@xxxxxxxxxxxxxxxxxxx
]
Sent: Monday, March 2, 2020 3:30 PM
To:
<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>
rpg400-l@xxxxxxxxxxxxxxxxxx
Cc: Kerwin Crawford <
<mailto:kcrawford@xxxxxxxxxxx>
kcrawford@xxxxxxxxxxx
Subject: Re: challenging tasks? Got one to discuss?
If your CCSID is 65535 then yes, that would cause it to error out.
On Mon, 2020-03-02 at 21:07 +0000, Kerwin Crawford via RPG400-L wrote:
Booth, I have found some of your stuff interesting.
I just looked at this and thought, I need to try it.
I copied the two SQLRPGLE programs and the DSPF to my system. They
compiled without issue. I think that is a first.
I get these results.
Location Response
Street 2800 37th St NW Trial 1 failed: SQL code -332
City Rochester Trial 2 failed: SQL code -332
State MN Trial 3 failed: SQL code -332
ZIP 55901
I looked up -332 and it said "Character conversion is not defined." I am
not sure what conversion it is refering to.
Do I need to set up my CCID or something?
[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.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
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.