proceduredivisionusing zeile1
zeile2
zeile3
zeile4
zeile5. * vorsicht: parameterübergabe soll nur "by content" erfolgen, weil * der pufferbereich auf blank gesetzt wird!
main. perform init movespaceto ausgabe movezeroto aus-ll set adressfeld toaddressof zeile1 move adressfeld-c to adressfeld-zeile1 * move zeile1 to zeile perform check if k > 0 thenmovespaceto zeile1(1:k) end-if * set adressfeld toaddressof zeile2 move adressfeld-c to adressfeld-x if adressfeld-x(1:4) = adressfeld-zeile1(1:4) and zeile2(1:1) > spaceand <= '9'then move zeile2 to zeile perform check if k > 0 thenmovespaceto zeile2(1:k) end-if end-if * set adressfeld toaddressof zeile3 move adressfeld-c to adressfeld-x if adressfeld-x(1:4) = adressfeld-zeile1(1:4) and zeile3(1:1) > spaceand <= '9'then move zeile3 to zeile perform check if k > 0 thenmovespaceto zeile3(1:k) end-if end-if * set adressfeld toaddressof zeile4 move adressfeld-c to adressfeld-x if adressfeld-x(1:4) = adressfeld-zeile1(1:4) and zeile4(1:1) > spaceand <= '9'then move zeile4 to zeile perform check if k > 0 thenmovespaceto zeile4(1:k) end-if end-if * set adressfeld toaddressof zeile5 move adressfeld-c to adressfeld-x if adressfeld-x(1:4) = adressfeld-zeile1(1:4) and zeile5(1:1) > spaceand <= '9'then move zeile5 to zeile perform check if k > 0 thenmovespaceto zeile5(1:k) end-if end-if * movespaceto obfus-h-text perform wri-que. goback
.
init. execsql set :db2server = CURRENT SERVER end-exec move'de026'to de026-pgm call de026-pgm onexceptiongoback end-call ifreturn-code = zerothenset batch totrueend-if ifreturn-code = 16 thenset online totrueend-if
.
check. set good-found totrue performvarying i from 1 by 1 until i > 131 or nongood-found if zeile(i:1) < spacethen set nongood-found totrue compute j = i -1 if j < 1 thenmove 1 to j end-if end-if end-perform if good-found thenmove 132 to j end-if set blank-found totrue performvarying i from j by -1 until i < 2 or nonblank-found if zeile(i:1) not = spacethen set nonblank-found totrue compute k = i if k <= 1 thenmove 1 to k end-if end-if end-perform if blank-found thenmove j to k end-if if aus-ll> 0 and< lengthof ausgabe then string ausgabe(1:aus-ll) zeile(1:k) delimitedbysizeinto ausgabe add k to aus-ll else if aus-ll = zerothen string zeile(1:k) delimitedbysizeinto ausgabe move k to aus-ll end-if end-if
.
wri-que. if batch then display ausgabe else move 1 to obfus-h-count move ausgabe to obfus-h-tab(1) move'obfus'to obfus-pgm move'de027'to obfus-h-aufruf-pgm
call obfus-pgm using obfus-dummy-dfheiblk
obfus-dummy-dfhcommarea
obfus-in-interface end-if
. end-program de027.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.