× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Here is a way to get the current UPSI's and current job date into RPG
(after say a lower program in the call stack has changed them):

     H dftactgrp( *no )

     D LUWRKA          PR              *   extproc( '_LUWRKA' )

     D LuWorkArea      DS                  based( LuWrk@ )
     D   JobDateCYMD                  7S 0 overlay( LuWorkArea : 18 )
     D   UPSI                          N   overlay( LuWorkArea : 25 )
     D                                     dim( 8 )

      /free
       LuWrk@ = LUWRKA();
       *INU1 = UPSI( 1 );
       *INU2 = UPSI( 2 );
       *INU3 = UPSI( 3 );
       *INU4 = UPSI( 4 );
       *INU5 = UPSI( 5 );
       *INU6 = UPSI( 6 );
       *INU7 = UPSI( 7 );
       *INU8 = UPSI( 8 );

Source include QSYSINC/H/MILIB has information on the Language/Utility Work
Area.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.