× 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: Re: control level indicators
  • From: BillsVilla@xxxxxxx
  • Date: Thu, 10 May 2001 17:25:34 EDT

In a message dated 5/10/2001 4:03:55 PM Eastern Daylight Time,
reisped@hilti.com writes:


Can anyone tell me what will be the value of the control level indicators
after the first read  of a primary file ? If it is ' ON' , a control break
will occur in the first record itself .How can we handle such a situation ?


Yes.

Since nothing is in the control fields before your 1st read your 1st read
will trigger your control break to occur.

Depends on your situation as there are several different solutions. If you
are dealing with strictly output - coding your lines with level indicators
will make RPG bypass the printing of the first record as it detects first
records to solve this problem.

If the program is small I would suggest using the level indicators to keep it
simple.

If the program is big and you are using EXCEPT's to keep it easy on the eyes
you will have to test for 1st record yourself.

They say you aren't suppose to use level indicators anymore in modern RPG
programming and you should do all the testing yourself. But, in real life, I
bounce back and forth depending upon the programming situation. Besides, it's
healthy to know both ways.

Bill

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.