|
Try using the PREFIX keyword on the file description line. Although there is no MOVE CORRESPONDING in RPG FFILENAME1 IF E K DISK PREFIX(F1_) FFILENAME2 IF E K DISK PREFIX(F2_) Joe Giusto II Patuxent Publishing Company <mailto:jgiusto@patuxent.com> mailto:JGiusto@patuxent.com http://www.lifegoeson.com <http://lifegoeson.com> -----Original Message----- From: Mary Koetting [SMTP:Mary_Koetting@mail.mchcp.org] Sent: Thursday, December 31, 1998 12:11 PM To: 'midrange' Subject: qualifying datanames We're a couple of COBOL programmers converting RPG code. We standardized our datanames because we thought that was 'good'. We are used to qualifying datanames in COBOL and didn't think what it would do to the RPG code. Is there a way of qualifying names in RPG IV? I think the list has already answered this as a 'no' but I wanted to double check. Working on the assumption that you can't, what's the best way to make sure that we are getting the value of variable that we expect? Should we save the value and use the new named variable? We don't have the time or the expertise to change the flow of the chains/reads. Should we rename the fields so that they are unique in each file? We hate to do this because we took great pains to try to cut down the size of the field reference file but would like to know if this is the preferred method. For example, the field containing the social security number, should it be named SSNMED in the medical plan file, SSNDEN in the dental plan file, etc.? Please advise. Appreciate much. Thanks. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.