From: MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 20-APR-1993 08:03:25.34 To: Info-VAX@KL.SRI.COM CC: Subj: Re: Issuing SUBMIT from a program In article <1993Apr19.171300.71@cesi.it>, meregalli@cesi.it writes: > How to submit batch jobs from a FORTRAN or C program? > > I know two ways: > > 1) using sys$sndjbc > 2) spawning a "submit" > > For various reasons I would prefer some other way (IF there is one!) Those are the only two supported ways that I know of. What I've done, though, is to write jacket routine around SNDJBC that allows you to simplify the call. Basically, you call the routine with the same arguments as you would a normal submit command and it will build the item list for you. Note that you must have access to a CLI to make this work (ie. be careful with detached processes). I haven't run this in several years but I see no reason why it still won't work. Some qualifiers may need to be updated or added but it's a good start. At the time I wrote it, it did what I needed to do. The sources will be posted to vmsnet.sources. Since I no longer have any reason to run this stuff, I will not accept any problem reports on it. What you see is what you get. I'll accept thanks though :-) -- Ed Wilts, BC Systems, 4000 Seymour Place, Victoria, B.C., Canada, V8X 4S8 EWilts@Galaxy.Gov.BC.CA Office: (604) 389-3430 Fax: (604) 389-3412