× 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.


  • Subject: Java program pointers
  • From: Gene Gaunt <issgg@xxxxxxx>
  • Date: Thu, 2 Dec 1999 22:56:36 -0700

Here's a program that creates user index QTEMP/JAVA with index entries format:

1-2     Java program type
3-32    Java program name
33-34   private authority
35-36   public authority
49-64   system pointer to Java program

dcl dd     Mat         auto char(256);
dcl dd     MatSize     def(Mat) pos(1)   bin(4)   init(256);
dcl dd     ObjectType  def(Mat) pos(9)   char(2)  init(X"0E0A");
dcl dd     ObjectName  def(Mat) pos(11)  char(30) init("JAVA");
dcl dd     CrtOptions  def(Mat) pos(41)  char(4)  init(X"A0000000");
dcl dd     IndexAttr   def(Mat) pos(97)  char(1)  init(X"30");
dcl dd     ArgLength   def(Mat) pos(98)  bin(2)   init(64);
dcl dd     KeyLength   def(Mat) pos(100) bin(2)   init(64);
dcl spcptr ?Mat        auto init(Mat);
dcl sysptr ?Qtemp      baspco pos(H"41");
dcl sysptr ?Qsys       auto init("QSYS", type(usrprf));
dcl dd     Options     auto char(80) bdry(16);
dcl dd     OptionFlags def(Options) pos(1) char(2) init(X"B1A0");
dcl sysptr ?Index      def(Options) pos(33);
dcl sysptr ?Continue   def(Options) pos(49);
dcl dd     RangeCount  def(Options) pos(65) bin(2)  init(1);
dcl dd     RangeFrom   def(Options) pos(67) char(2) init(X"0250");
dcl dd     RangeThru   def(Options) pos(69) char(2) init(X"0250");

cpybwp     Mat(65:16), ?Qtemp;
crtinx     ?Index, ?Mat;
matauobj   ?Mat, ?Qsys, Options;
pend;

+---
| This is the MI Programmers Mailing List!
| To submit a new message, send your mail to MI400@midrange.com.
| To subscribe to this list send email to MI400-SUB@midrange.com.
| To unsubscribe from this list send email to MI400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: dr2@cssas400.com
+---


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.