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



Set up the select with a logical file

SELECT File    ASSIGN TO DATABASE-NameOf Logical
                           ORGANIZATION    IS INDEXED
                           ACCESS MODE     IS DYNAMIC
                           RECORD KEY      IS EXTERNALLY-DESCRIBED-KEY
                                                           WITH DUPLICATES
                           FILE STATUS     IS FILE-STATUS.


 Move SchoolYear to LogicalKeyYear.

 START File KEY NOT LESS THAN  EXTERNALLY-DESCRIBED-KEY.

READ File NEXT RECORD.




|--------+----------------------------->
|        |          Diane Nott         |
|        |          <dnott@lorainccc.ed|
|        |          u>                 |
|        |          Sent by:           |
|        |          cobol400-l-admin@mi|
|        |          drange.com         |
|        |                             |
|        |                             |
|        |          04/11/2002 10:52 AM|
|        |          Please respond to  |
|        |          cobol400-l         |
|        |                             |
|--------+----------------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |      To:     cobol400-l@midrange.com                                       |
  |      cc:                                                                   |
  |      Subject:     Read and Start Statements                                |
  >----------------------------------------------------------------------------|




This is a multi-part message in MIME format.
--
Hi! I haven't work much with the Start statment with the Read. Can
someone explain it to me with an example.

In the program I am writing, I need to point to the first record
containing the school Year and Term that I input and then summarize
counts by date.

Thanks for any help.

Diane
--





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.