BIXBY,MARK (HP-Cupertino,ex1) wrote in message ... >> -----Original Message----- >> From: [log in to unmask] [mailto:[log in to unmask]] >> >> I would like to run a job that automatically increase the group size. >> I had written an awk script which I ran from a job using >> >> REPORT;ONVS=APPL_VOL > TMP >> AWK.HPBIN.SYS "-f DSKSPACE" < TMP >> >> then I would like to run from the AWK script the following command >> >> system("/VESOFT/AUDITC/ALTGROUP TEST;ONVS=APPL_VOL;FILES=40000000") >> >> but it gave me this error >> >> /VESOFT/AUDITC/ALTGROUP: cannot execute: Permission denied >> >> Please advise...thanks! > >I need to know exactly what /VESOFT/AUDITC/ALTGROUP is -- NMPRG, PROG, or CI >command file? > >If it's an NMPRG, you should be doing: > >system("/VESOFT/AUDITC/ALTGROUP TEST\;ONVS=APPL_VOL\;FILES=40000000") > >Note the use of \ to escape the semicolons which have meaning to the POSIX >shell which gets invoked when you do system(). > >If it's a PROG or CI command file, you should do: > >system("callci /VESOFT/AUDITC/ALTGROUP TEST\;ONVS=APPL_VOL\;FILES=40000000") Unfortunately, it is neither. It is an internal MPEX command file [expression program, to be exact] and is not executable code nor recognizable commands to the normal MPE/iX command processor nor the posix "sh" command processor. Within MPEX, when you execute a %VEAUDIT command, it looks for an expression program in the AUDITC group of the VESOFT account and evaluates/runs that program. So, one way to do this is to place the command to be executed into a file and run MAIN.PUB.VESOFT with input redirected to this file, as in: echo VEAUDIT ALTGROUP TEST;ONVS=APPL_VOL;FILES=40000000 > MPEXCMDS system ("/VESOFT/PUB/MAIN <MPEXCMDS") Note that the file you create and ultimately use as the input file should be in the normal MPE filename space. also, the semicolons may need to be escaped in the echo command [I don't know offhand if they are "live" in an echo command or not]