- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: VMS MAIL %MAIL-E-FILNOTDEL error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 06:10 AM
07-29-2004 06:10 AM
%MAIL-E-FILNOTDEL, error deleting SYS$SCRATCH:[UTIL.BKU]MAIL_210A_SEND.TMP;*
-RMS-F-DEV, error in device name or inappropriate device type for operation
%MAIL-E-FILNOTDEL, error deleting SYS$SCRATCH:[UTIL.BKU]MAIL_210A_EDIT.TMP;*
-RMS-F-DEV, error in device name or inappropriate device type for operation
This only reports the error when running a DCL script via batch.
Commands used is:
$ MAIL_PROCEDURE:
$set noon
$open/write mailfile tmp_mail.txt
$write mailfile "''err_msg1'"
$close mailfile
$mail/subj="Alert - OSIBK1 Backup ''status'" -tmp_mail.txt "user@mycompany.com"
$delete/nolog tmp_mail.txt;*
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 06:25 AM
07-29-2004 06:25 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Did you notice that the path in the error stated sys$scratch:[current_working_dir]
which is not correct.
a manual show log sys$scratch shows:
"SYS$SCRATCH" = "SYS$SYSROOT:[SYSMGR]" (LNM$JOB_81663980)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 07:02 AM
07-29-2004 07:02 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 08:08 AM
07-29-2004 08:08 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
I have another script that also runs via batch with same mail code and no errors.
$ MAIL_PROCEDURE:
$!MAIL SOMEBODY
$set noon
$open/write mailfile tmp_mail.txt
$write mailfile "''err_msg1'"
$close mailfile
$mail/subj="Alert - OSIBK1 BCV MERGE ''status'" tmp_mail.txt "user@mycompany.com"
$delete/nolog tmp_mail.txt;*
$ return
$!END MAIL_PROCEDURE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 08:10 AM
07-29-2004 08:10 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
SYS$SCRATCH is defined at login time as the user's default directory and can be and usually is different for every user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 08:15 AM
07-29-2004 08:15 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 08:19 AM
07-29-2004 08:19 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Here is the output after using show log sys$scratch
%SHOW-S-NOTRAN, no translation for logical name SYS$SCRATCH
%MAIL-E-FILNOTDEL, error deleting SYS$SCRATCH:[UTIL.BKU]MAIL_2259_SEND.TMP;*
-RMS-F-DEV, error in device name or inappropriate device type for operation
%MAIL-E-FILNOTDEL, error deleting SYS$SCRATCH:[UTIL.BKU]MAIL_2259_EDIT.TMP;*
-RMS-F-DEV, error in device name or inappropriate device type for operation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 04:58 PM
07-29-2004 04:58 PM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
>> Dale A. Marcy Jul 29, 2004 20:15:01 GMT ->> ---------------------------------------------
>> That is the error message you would receive if Sys$Scratch has been deassigned (or never defined). Is it possible there is a branch based on an f$mode() being batch or not being interactive that could cause the logical to be deassigned in either the sylogin procedure or the user's login procedure?
Sounds good Dale!
>> Tim Nelson Jul 29, 2004 20:19:21 GMT
>>-----------------------------------------
>> submitted under SYSTEM using.
>>Here is the output after using show log sys$scratch
>> %SHOW-S-NOTRAN, no translation for logical name SYS$SCRATCH
This confirms Dale's thoughts.
Please make sure a valid sys$scratch is defined for all users (Before F$MODE() check in sylogin!)
In the mean time I check the Mail sources a little. It suggests it will only conditionally delete (wildcarded) send and endi tmp file using a global flag. In practice though it seems always to try, whether a temp file was created or not.
The code explicitly checks for 'FNF' (File Not Found) and declares victory if it received that specific error. But 'DEV' triggers the 'FILNOTDEL' condition.
So just define sys$scratch and maill will get FNF back from RMS and it will be happy.
hth,
Hein.
%MAIL-E-FILNOTDEL, error deleting SYS$SCRATCH:[UTIL.BKU]MAIL_2259_SEND.TMP;*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 05:53 PM
07-29-2004 05:53 PM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
SYS$SCRATCH is defined as a JOB-wide EXEC-mode logical name by LOGINOUT and cannot easily be deleted.
You can easily test, if some code is deleting SYS$SCRATCH by submitting a simple DCL-procedure with just a SHOW LOG/FULL SYS$SCRATCH in the same environment in which your mail procedure is run.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 02:47 AM
07-30-2004 02:47 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
not in sylogicals, sylogin.com, login.com
I see a few references but not the define. It is definately defined as show log sys$scratch from a interactive login is valid. Where is the best place. I see it mentioned that it may/could be defined separetly per each user's login.com.
What would be the recommendation ?
Thanks to all for the help !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 03:02 AM
07-30-2004 03:02 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Maybe if you provided us with the exact command you use to submit the job, and tell us more about your configuration, someone might think of something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 03:11 AM
07-30-2004 03:11 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Well, perhaps better use a conditional like:
$ if f$mode().eqs."BATCH" then $ set verify
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 05:19 AM
07-30-2004 05:19 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
If so, I am supprised that something like this is not already a "default" or "templated" item in either sylogin or login.com.
System info if interested:
AS1200
VMS 7.3-2
job submitted via a VMS CRON like process using:$ spawn/output=nl:/log/nowait/proc='prcnm' 'command'
CRON.COM submitted via:
$ run -
/detach -
/input = admin:[util.cron]cron.com -
/output = admin:[util.cron.log]cron.log -
/error = admin:[util.cron.log]cron.error -
/process = "Cron_DAEMON" -
/queue_limit = 20 -
/subprocess_limit = 20 - !make high enough for spawned commands
/page_file = 10000 -
/time_limit = 0 -
/extent = 1024 -
/file_limit = 50 -
/uic = [SYSTEM] -
/prior=10 -
sys$system:loginout.exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 05:42 AM
07-30-2004 05:42 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
I already had a thread in which I say that detached processes stink.
1) TT is defined differently (i'm at home, I can't check)
2) no login is executed
3) some logicals are missing (e.g. sys$scratch)
4) process is not really user bound
Yet another victem. When are they going to implement "su -" as in Unix ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 05:45 AM
07-30-2004 05:45 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 06:15 AM
07-30-2004 06:15 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
How do you start your 'mail procedure' - via SUBMIT or RUN/DETACH (the second command creates a detached process, not a batch job!).
Try a RUN/DETACH/AUTHORIZE - this should create SYS$SCRATCH (I haven't fully checked the threads that Wim has given, but I have seen /AUTHORIZE is mentioned, so I won't go in detail here.
I suggest you leave out the /ERROR qualifier fromthe RUN command. In that case all output to SYS$ERROR is writte to /OUTPUT as well. I found it much easier to read a complete logfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 06:21 AM
07-30-2004 06:21 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
The DCL script that sends an email is executed via the "cron" process as a spawned process.
I will play around a little with the way the "cron" process is executed to see if /auth or some other switch helps.
If not I with either ignore the %MAIL error or include the define for the sys$scratch in somewhere.
Thank you !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 07:14 AM
07-30-2004 07:14 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Uwe is right. On Unix one should call this a batch job but on VMS we don't. It's detached.
But, for 1 time, Unix does the job better.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2004 10:33 AM
07-31-2004 10:33 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
which "Cron" are you using, a "homegrown" one or one of the publicly released implementations? I might be able to test this
a bit more around here.
A save way to make sure you have sys$scratch without messing with it in case it already has been put in place is something along the lines of
$ if f$trnlnm("sys$scratch") .eqs. "" then define sys$scratch dev:[dir]
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2004 02:28 AM
08-02-2004 02:28 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
The "cron" like utility is something I found on the www. I had to make some mods to allow for down to the minute and a couple tweeks here and there to spruce it up.
I am hoping not to have to include checking for sys$scratch in every script written. I am going to try to add it directly into the "cron.com" script to see if I can address it that way.
Currently calling the mail subsystem is the only place complaining about sys$scratch.
Muchas gracias.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2004 02:50 AM
08-02-2004 02:50 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
I defined sys$scratch in the "cron" like process itself and yes it took care of things. Thanks to all !!!
type cron_test.log
"SYS$SCRATCH" = "ADMIN:[UTIL.CRON.LOG]" (LNM$PROCESS_TABLE)
I have another question:
Where is the below "verify" output coming from ? This is from the "cron" like processes log. The only place I see something like this is at the top of sylogin.com. Why would this be echoed to output ?
type cron.log
$ Set NoOn
$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))
Spawning command: @ADMIN:[UTIL.CRON]CRON_TEST.COM at 2-AUG-2004 09:45:00.38
%DCL-S-SPAWNED, process CRON_TEST spawned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2004 03:56 AM
08-02-2004 03:56 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
I lost this thread :-(
About your last question:
If you comand procedure (@ADMIN:[UTIL.CRON]CRON_TEST.COM) is executed directly assume same input/output of caller.
I guess you run this command wiyhi spawn (because I read DCL-S-SPAWNED message); in this case you have define input and output file using /INP and /OUT qualifier; default valut of /OUT qualifier is SYS$OUTPUT file,
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2004 03:57 AM
08-02-2004 03:57 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))
It will turn verify off if the logical SYLOGIN_VERIFY is defined as a 0 (zero) or a "FALSE" value. If you do not want to see any of the output, move this line to the top of your sylogin procedure and add a single hollerith (') in front of the F$VERIFY as shown below:
$ VERIFY = 'F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))'
$ Set NoOn
I also add the hollerith at the end of the statement, but it will function with out it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2004 04:07 AM
08-02-2004 04:07 AM
Re: VMS MAIL %MAIL-E-FILNOTDEL error
Thanks again...
This should be the end of this thread.
Merci buckets,
Tim