-
Open Option des API QSQPRCED
Hallo, ich bekomme es einfach nicht hin.
kann mir jemand die Hex Codes dafür geben?
das habe ich bisher zusammen gesucht und ich hoffe die Stimmen.
Read = X'80'
Write = X'F0'
Update = X'A0'
nur wie ist der Delete?
Delete = ????
Gruß
Xanas
-
-
Danke schon mal für die schnelle Antwort, aber genau aus dieser werde ich nicht wirklich schlau.
Open options. The open options used on an SQL cursor. These are specified using the following bits:
Bit(0) | Read | Bit(1) | Write | Bit(2) | Update | Bit(3) | Delete |
For example, if a cursor is only for FETCH statements, the bit pattern should be '10000000'B or hex 80. If update capability is needed, the bit pattern should be '10100000'B. The syntax in the SQL statement takes precedence over the open options. This means that the FOR UPDATE OF and FOR FETCH ONLY clauses will be honored, even if they do not coincide with the requested open options. The open options are required for functions 2 and 4. They are ignored for other functions.
-
Ein Einbytefeld wird von links nach rechts mit den Bit's gezählt, daher kann man mit RPG auch den BITON-Befehl verwenden:
BITON 0 FELD
In ILE gibts dafür %bitor(...);
Also
Feld = %bitor(b'1000000':Feld)
Wenn du die Kombination direkt kennst, kannst du auch so zweisen:
Feld = B'11110000';
Damit entfällt die Hexrechnerei.
Similar Threads
-
By markus.ohliger in forum IBM i Hauptforum
Antworten: 41
Letzter Beitrag: 14-05-10, 10:39
-
By TMusolf in forum NEWSboard Programmierung
Antworten: 4
Letzter Beitrag: 25-01-07, 12:42
-
By Andreas Herzfeldt in forum IBM i Hauptforum
Antworten: 1
Letzter Beitrag: 05-11-06, 02:15
-
By TARASIK in forum IBM i Hauptforum
Antworten: 2
Letzter Beitrag: 14-01-05, 08:00
-
By woki in forum NEWSboard Programmierung
Antworten: 2
Letzter Beitrag: 13-04-04, 12:09
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