×
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.
Slight modification to what I sent before (mainly define the array lengths as the length of one of its elements from the file).
D ds_File DS LikeRec( FileRec )
D NumAry1 Dim( 24 ) Overlay( ds_File )
D Like( Numbers01A)
D NumAry2 Dim( 24 ) Overlay( ds_File: *next )
D Like( Numbers01B)
D NumAry3 Dim( 24 ) Overlay( ds_File: *next )
D Like( Numbers01C)
Read file ds_File;
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Thursday, June 25, 2009 4:09 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Reading a file into a data set
Does this work?
D ds_File DS LikeRec( FileRec )
D NumAry1 5p 0 Dim( 24 ) Overlay( ds_File )
D NumAry2 5p 0 Dim( 24 ) Overlay( ds_File: *next )
D NumAry3 5p 0 Dim( 24 ) Overlay( ds_File: *next )
Read file ds_File;
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Thursday, June 25, 2009 3:18 PM
To: RPG programming on the IBM i / System i
Subject: Reading a file into a data set
Brain freeze on top of a brain fart really hurts
I'm sure that I've done this before, but I cannot remember how or in which
program
I have an externally defined file with the record consisting of the
following fields
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.