UNSTRING Statement

Beispiele

  1. UNSTRING T-PRUEF-64 DELIMITED BY ALL SPACE INTO
  2. T-KDUB-NAM-TL-ELE (1)
  3. T-KDUB-NAM-TL-ELE (2)
  4. T-KDUB-NAM-TL-ELE (3)
  5. T-KDUB-NAM-TL-ELE (4)
  6. T-KDUB-NAM-TL-ELE (5)
  7. T-KDUB-NAM-TL-ELE (6)
  8. END-UNSTRING
var parts = TPruef64.Split(new [] {" "}, StringSplitOptions.RemoveEmptyEntries);
if (parts.Length > 0) TKdubNamTlEle[0] = parts[0];
if (parts.Length > 1) TKdubNamTlEle[1] = parts[1];
if (parts.Length > 2) TKdubNamTlEle[2] = parts[2];
if (parts.Length > 3) TKdubNamTlEle[3] = parts[3];
if (parts.Length > 4) TKdubNamTlEle[4] = parts[4];
if (parts.Length > 5) TKdubNamTlEle[5] = parts[5];

Mit Pointer und Count 1)

  1. MOVE 1 TO L-UNSTRING-POINTER
  2. PERFORM VARYING L-PO-IXI FROM 1 BY 1
  3. UNTIL L-PO-IXI > 32
  4. INITIALIZE L-TRUST-ZELLE-INHALT(L-PO-IXI)
  5. UNSTRING TRUST-FFB-DATEN DELIMITED BY ';'
  6. INTO L-TRUST-ZELLE-INHALT(L-PO-IXI)
  7. COUNT IN L-TRUST-ZELLE-LAENGE(L-PO-IXI)
  8. WITH POINTER L-UNSTRING-POINTER
  9. END-UNSTRING
  10. END-PERFORM
LUnstringPointer = 1;
for (LPoIxi = 1; LPoIxi <= 32; LPoIxi++) {
	LTrustZelleInhalt[(int) (LPoIxi - 1)] = String.Empty;
	{
		var parts = TrustFfbDaten.ToString().Split(new [] {";"}, StringSplitOptions.None);
		if (parts.Length > 0) {
			LTrustZelleInhalt[(int) (LPoIxi - 1)] = parts[0];
			LTrustZelleLaenge[(int) (LPoIxi - 1)] = parts[0].Length;
			LUnstringPointer  = parts[0].Length;
		}
	}
}

TODO Liste

Syntaktisch erkannt, aber von den Generatoren derzeit nicht unterstützt sind folgende Bestandteile:

  • (NOT) ON OVERFLOW
1)
v10.00
cobmig:cs:procdiv:stmt:unstring · Zuletzt geändert: 09.08.2024 13:25

Copyright © 1992-2024 TeamWiSE Gesellschaft für Softwaretechnik mbH         Adressen |  Kontakt |  AGB |  Datenschutzerklärung |  Impressum