|
Yes, but will it validate the name of the file to create? Make sure it has no invalid characters? Oh well, his question was answered by the CHECK(VN) DDS keyword. mwalter@netrax.net on 11/11/99 01:55:55 PM Please respond to RPG400-L@midrange.com@Internet To: RPG400-L@midrange.com@Internet cc: Fax to: Subject: Re: Validating a File name Try utilizing QUSROBJD API. This will return and objects attributes and also through an error if the object dosen't exist. Mark Walter -----Original Message----- From: gbailey@baxglobal.com <gbailey@baxglobal.com> To: RPG400-L@midrange.com <RPG400-L@midrange.com> Date: Thursday, November 11, 1999 7:04 AM Subject: Validating a File name > > >Hi, > >I'm currently working on a program that requires the user to input a file name >via a display file, in which to store data produced by a program. (This file can >later be used for transfer to a PC). > >The problem I'm having at the moment is validating the name being input as being >in an acceptable name format for the AS/400. I've looked at a CL program to >CHKOBJ and MONMSG where the name is not valid, but can't help thinking there >must be another way. Would any API be applicable? > >I appreciate any help you can give on the subject > >Graham Bailey > > >+--- >| 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.