Advertisement
Guest User

Calling API QliChgLL

a guest
Jun 26th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. * Change Library List
  2. dcl-pr QliChgLL extpgm('QliChgLL');
  3. pCurLib Char(11) const;
  4. pProdLib1 Char(11) const;
  5. pProdLib2 Char(11) const;
  6. pUsrLibL Char(11) const dim(50);
  7. pUsrLibLen Int(10) const;
  8. pStdApiErr VarChar(16);
  9. end-pr;
  10.  
  11. * Change Library List Parameters
  12. dcl-s SameLib char(11) inz('*SAME ');
  13. dcl-s UsrLibL char(11) dim(50);
  14. dcl-s UsrLibLen int(10) inz(0);
  15. dcl-s ApiErrMsg VarChar(16);
  16.  
  17. // Set library list
  18. clear UsrLibL;
  19. UsrLibL(1) = 'MYLIB ';
  20. UsrLibLen = 1;
  21.  
  22. CallP(e) QliChgLL( SameLib : SameLib : SameLib
  23. : UsrLibL : UsrLibLen : ApiErrMsg );
  24.  
  25. if %error;
  26. *inLR = *on;
  27. return;
  28. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement