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



Bobby,

You need a dummy label before for every stmt that is branched to.  Just :
without a name.

Steve

-----Original Message-----
From: mi400-admin@midrange.com [mailto:mi400-admin@midrange.com]On
Behalf Of Bobby.Hicks@ccc-michigan.com
Sent: Wednesday, July 10, 2002 11:02 AM
To: mI400@midrange.com
Subject: [MI400] TSTBTS


Hi,

I am getting an error when I try to create a MI program.  The error is
caused by a TSTBTS instruction.  I do not know why?  Please help.  Here is
a portion of the code:

/*--User profile authority information.                              */
  DCL  SPCPTR .AUT-INFO INIT(AUT-INFO);
  DCL  DD AUT-INFO CHAR(144);
    DCL DD INFO-BYTES-PROVIDED    BIN(   4) DEF(AUT-INFO) POS( 1)
INIT(144);
    DCL DD INFO-BYTES-AVAILABLE   BIN(   4) DEF(AUT-INFO) POS( 5);
    DCL DD INFO-PRV-INSTR-BITS    CHAR(  4) DEF(AUT-INFO) POS( 97);
    DCL DD INFO-SPC-AUT-BITS      CHAR(  4) DEF(AUT-INFO) POS(101);
      DCL DD INFO-SPC-BITS-1      CHAR(  1) DEF(INFO-SPC-AUT-BITS) POS(1);
      DCL DD INFO-SPC-BITS-2      CHAR(  1) DEF(INFO-SPC-AUT-BITS) POS(2);
      DCL DD INFO-SPC-BITS-3      CHAR(  1) DEF(INFO-SPC-AUT-BITS) POS(3);
      DCL DD INFO-SPC-BITS-4      CHAR(  1) DEF(INFO-SPC-AUT-BITS) POS(4);


/*--Get authority flags.
  MATUP           .AUT-INFO,.ProfileDfn;
  TSTBTS(B)        INFO-SPC-BITS-1,0/ZER(=+2);
  CPYBLA           WORK-ALL-OBJ-AUT,'Y';

  TSTBTS(B)        INFO-SPC-BITS-1,1/ZER(=+2);
  CPYBLA           WORK-SAV-SYS-AUT,'Y';

  TSTBTS(B)        INFO-SPC-BITS-1,2/ZER(=+2);
  CPYBLA           WORK-SAV-SYS-AUT,'Y';

  TSTBTS(B)        INFO-SPC-BITS-1,3/ZER(=+2);
  CPYBLA           WORK-SAV-SYS-AUT,'Y';

  TSTBTS(B)        INFO-SPC-BITS-1,4/ZER(=+2);
  CPYBLA           WORK-JOB-CTL-AUT,'Y';
...


If i comment out the second and subsequent TSTBTS operation codes the
program compiles normally..



Bobby.

Robert Hicks
Combinatorics Consulting Company
Tel.: (248) 347 - 7222, ext. 222
Fax: (248) 347 - 7227
Email:  Robert.Hicks@ccc-michigan.com



_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/mi400
or email: MI400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.