|
Well, I've mainly messed with it through WRKNAMSMTP, but I have updated QATMSMTPA via DFU, and via SQL - on V4R1 with cum package C8013410 applied, so maybe you could use SQL from within your RPG program to update the file ? Also - I haven't tried this, but..... Maybe you could run CVTNAMSMTP (WARNING - it's non-reversible so read the help text, copied below, first), and then use standard commands like CHGDIRE etc.to maintain. Convert SMTP Names - Help The Convert Name SMTP (CVTNAMSMTP) command is used to convert existing SMTP system alias names into System Distribution Directory entries. After this command is issued, the following is true: o The Work with Names for SMTP (WRKNAMSMTP) command can no longer be used. o SMTP system alias names must be maintained using the System Distribution Directory commands. (Use the Work with Directory Entries (WRKDIRE) command to access the System Distribution Directory commands.) o Personal aliases can no longer be used. The amount of time the conversion takes depends on the number of SMTP names that exist. If there are a large number of SMTP names, it is recommended that the conversion be done in batch. Warning: The conversion that is made by CVTNAMSMTP is not reversible. Once the conversion is complete, the System Distribution Directory must be used to maintain SMTP system alias names. There are no parameters for this command. Neil Palmer AS/400~~~~~ NxTrend Technology - Canada ____________ ___ ~ Thornhill, Ontario, Canada |OOOOOOOOOO| ________ o|__||= Phone: (905) 731-9000 x238 |__________|_|______|_|______) Cell.: (416) 565-1682 x238 oo oo oo oo OOOo=o\ Fax: (905) 731-9202 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailto:NPalmer@NxTrend.com AS/400 The Ultimate Business Server http://www.NxTrend.com > -----Original Message----- > From: Mark Burns [SMTP:burnsmt@ozemail.com.au] > Sent: Thursday, March 26, 1998 2:46 AM > To: Midrange > Subject: > > Hi All, > > We've written a program to update a system file QATMSMTPA which holds > the > System SMTP aliases. From a previous question I asked a few weeks ago > other > people on the list indicated they had done this. > > When our program runs we are getting error CPF4194 saying that the > file can > only be opened for Input not Output, Update or Delete. When I tried > running > interactive SQL I got a similiar message saying that users cannot > update a > system table. > > I've tried changing the program so that it adopts QSECOFR authority > and I > tried with it adopting QSYS authority (QATMSMTPA object owner) with > the > same result. Is it because the file is in the System domain and the > program > is in the User domain? I thought this only caused a failure above > security > level 40. > > Any suggestions would be appreciated > > > > > Mark Burns > Kraft Foods Australia > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@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.