Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading a file using open dataset, read dataset returing one long string

Former Member
0 Likes
385

We are running SAP 4.5B on an AS400. After running the check extract creation program RFCHKE00 and file is placed in the IFS. Using open dataset input in text mode and read dataset into, I am having a problem where the read brings in one record for the entire file. The SAP file is 128 bytes but the read dataset does not recognize the individual records, I think the file does not contain end of record characters. Is there a better way to retreive the file?

1 REPLY 1
Read only

Former Member
0 Likes
332

u have to use dataset only...after read entire string, u can do a split and move data to internal table.