|
What is your situation specifically? I do not know if you build the record or if you receive it from somewhere else, but if your are handling a database file with a well defined DDS, you can refer to the fields on the file as you normally do. You need to use a DCLF command at the top of the program (also the RCVF to read the file of course) and that is all. If that is not the case, you may need some kind of field delimiters that will help you determine the beginning and end of a field. I have a program like that uses "*" as delimiters but obviously it could be anything (commas spaces, etc.) If you are building this record, identify it as this. If you are receiving this from some external entity, see if they can place some field delimiters. I hope this help you. Peter Vidal CYBRT1@aol.com Sent by: To: <RPG400-L@midrange.com> owner-rpg400-l@mi cc: drange.com Subject: RCVF Question (since I never used it before) 03/02/01 09:35 AM Please respond to RPG400-L I am reading a file in cl with the RCVF, I read one record which is 132 bytes long, I would like to substring this %SST, but I do not know how to declare a var for the file record. I do know each position in the record that needs to be substringed. Any help greatly appreciated. Unfortunately I have to use CL for this instead of RPG. TIA, Tom +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.