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



Buck,

"Not alot of code" in pgm but "IN alot of Code".

"Z-add0 AR" - it does not look like it is moving zeros into
every position of AR. "z-addAR,2 #ACCTO 130" Or AR,2 would
have had zeros not blanks?

Thanks for "I in the 'type of data structure' column" but DS  1 130 AR is
130 alpha. Sub fields
numeric. Would "I" move in blanks or zeros.
and AR Array is numeric 10 130. ?? Could I move AR 1 130 below Sub fields?

Thanks
 Bill H

-----Original Message-----
From: Buck Calabro [mailto:Buck.Calabro@commsoft.net]
Sent: Tuesday, November 05, 2002 12:24 PM
To: rpg400-l@midrange.com
Subject: RE: Array/ Data Deciamal


>Sub Fields from file ARACCT
>I            DS
>I                                        1 130 AR
>I                                        1  130AAACT1
>C           #ARACT    CHAINARACCT               85
>C           *IN85     IFEQ *ON
>C                     Z-ADD0         AR
><<<<<<<<<<<<<<<<
>???? What's up with this?
>C                     END
>
>C                     Z-ADDAR,2      #ACCT0 130
><<<<<<<<<<<<<<<< Boom on
>when no hit on ARACCT
>
>When no hit AR  DS has blanks.
> So AR,2 has blanks.
>So Data decimal error when z-add AR,2 to #ACCTO
>
>Anyone suggested fixes/better way This is in alot
>of code just been lucky till now..

Data structures are initialised to *BLANK when the program starts.  You can
override this with an I in the 'type of data structure' column.  This
doesn't help with 'stale' values left after a good CHAIN.  The Z-ADD0 AR is
good practise after a 'no hit' scenario; why do you feel this is a lot of
code?

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.