midrange.com code scratchpad |
Name:
UDF to Wrap existing call
|
Scriptlanguage:
Plain Text
|
Tabwidth:
4
|
Date:
11/19/2021 12:07:16 am
|
IP:
Logged
|
|
Description:
The user was to lazy to give a description
|
Code:
- ctl-opt nomain ;
-
- dcl-proc GetPPKQty export ;
- dcl-pi GetPPKQty int(5);
- ppManifest zoned(8) const ;
- ppInvoice char(16) const;
- end-pi ;
-
- dcl-s outPcs int(5) ;
-
- Dcl-Pr WHSO627R ExtPgm;
- *n char(8) const;
- *n char(16) const;
- *n char(6 );
- *n char(6 );
- *n char(6 );
- *n char(3 );
- end-Pr;
-
- dcl-s pfQty char(6);
- dcl-s pfWeight char(6);
- dcl-s pfPieces char(6);
- dcl-s pfppk char(3);
- dcl-s wkManifest char(8);
-
- wkManifest = %char(ppManifest);
-
- whso627r(wkManifest:ppInvoice:pfQty:pfWeight:pfPieces:pfppk);
-
- outPcs = %dec(pfPieces:5:0);
- return outPcs ;
-
- end-proc ;
|
|
|