|
Do you mean an internally defined file or are you meaning a file in the S/36 environment? Two different things. Rob Berendt ================== Remember the Cole! "Lynette Chronister" To: <RPG400-L@midrange.com> <lchronis@MasonicHo cc: mesPA.org> Subject: Re: Variable file name in rpg /or cl Sent by: owner-rpg400-l@midr ange.com 10/13/00 12:20 PM Please respond to RPG400-L this is a good idea. I will use this one myself from now on. Would you happen to know if this would work using system36 files? or only externally described? Nettie >>> rob@dekko.com 10/13/00 12:34PM >>> Lots of good suggestions pouring in on this. I go with the OVRDBF. My only suggestion is why write two programs - an RPG and a CL? Use the USROPN keyword on your F spec. Use CALL QCMDEXC, (or the alternatives), to OVRDBF the file from within the RPG program. Then use the OPEN opcode to open the file. When you are done, use the CLOSE op code. I've really cut back on CL. In fact if you use the alternatives to QCMDEXC you get the error return code. Which I think is easier to handle than a MONMSG. For example, which is more thorough: MONMSG CPF000 GOTO(ERROR) GOTO NOERROR: ERROR: /* Find out which error code we actually got and then process accordingly */ - or - eval error=runthis(cmd) Select when error=*blanks when error='CPF....' ... when error='CPF,,,,' ... other .... endsl Quazy <quazy@SoftHome.n To: rpg400-l@midrange.com et> cc: Sent by: Subject: Variable file name in rpg /or cl owner-rpg400-l@mi drange.com 10/13/00 09:18 AM Please respond to RPG400-L I need to have a cl program pass a variable to either a rpg or cl program. This variable is the file name that the program needs to read from. Any suggestions on how to do this??? Thanks Chris +--- | 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 +--- +--- | 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 +--- +--- | 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 +--- +--- | 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.