-
Hallo zusammen!
Ich habe genau das gleiche Problem wie Matthias, möchte ein "G" Feld unkonvertiert (ccsid 1200) weiterverarbeiten und erhalte konsequenterweise den gleichen Fehler.
Ich habe schon den SQLNAME entsprechend gesetzt, muss am SELECT ebenfalls etwas gemacht werden (=> CAST ?)
Danke schon mal vorab!
Andi
-
Wenn du mit SQLDA umgehst musst du die Feldtypen für den Fetch schon genau spezifizieren.
Wenn du keine Umsetzung möchtest, musst du als Zielvariable einen Binärfeldtyp mit ausreichend großem Puffer wählen.
Für Fixed-Binary gilt der Feldtyp 912/913, für varying Binary 908/909 (Siehe SQL-Reference).
Beim Describe Table/Statement erhältst du auch die CCSID in der SQLDA, so dass du explizit entscheiden kannst.
Wandelst du in CHAR um, muss ja eine Umsetzung erfolgen, in diesem Fall ist die CCSID in der SQLDA anzugeben.
Bei fehlender Angabe wird eben die JOB-CCSID verwendet, was bei *HEX zum Fehler führt.
CCSID values in SQLDATA or SQLNAME In the OPEN, FETCH, CALL, and EXECUTE statements, the SQLNAME field of
the SQLVAR element can be used to specify a CCSID for string host variables. If
the SQLNAME field is used to specify a CCSID, the SQLNAME length must be set
to 8. In addition, the first 4 bytes of SQLNAME must be set as described in the
table below. If no CCSID is specified, the job CCSID is used.
In the DESCRIBE, DESCRIBE TABLE, and PREPARE statements, the SQLDATA
field of the SQLVAR element contains the CCSID of the column of the result table
if that column is a string column. The CCSID is located in bytes 3 and 4 as
described in Table 123. Table 123. CCSID values for SQLDATA or SQLNAME Data Type
Encoding
Scheme Bytes 1 & 2 Bytes 3 & 4 Character SBCS data X'0000' ccsid
Character Mixed data X'0000' ccsid
Character Bit data X'0000' 65535
Graphic Not Applicable X'0000' ccsid Any other data type Not Applicable Not Applicable Not Applicable
Similar Threads
-
By codierknecht in forum NEWSboard SAP
Antworten: 32
Letzter Beitrag: 09-02-18, 13:00
-
By schatte in forum NEWSboard Programmierung
Antworten: 5
Letzter Beitrag: 08-02-11, 17:36
-
By ah1960 in forum NEWSboard Programmierung
Antworten: 10
Letzter Beitrag: 30-06-08, 15:03
-
By angelone in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 20-04-07, 11:50
-
By Atomik in forum IBM i Hauptforum
Antworten: 2
Letzter Beitrag: 02-08-02, 14:01
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks