Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: How to load a fixed length file to an internal table using DATASET

$
0
0

Blue,

     It can be achieved using DATASET concept. Below is the general flow of program to read the file.

 

     /* Open file for reading*/

     OPEN DATASET <file name> FOR INPUT ENCODING DEFAULT

 

     /*Read data from the file*/

     DO.

          READ DATASET <file name> INTO wa.

          APPEND wa INTO int_table

     ENDDO.

 

     /*close the file*/

     CLOSE DATASET <file name>

 

     There many discussions found in the forum on how to use DATASET for file operations. Please go through them and you will have an idea.

 

~Athreya


Viewing all articles
Browse latest Browse all 10482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>