And it _does_ get past the udt program; i.e., it actually sends the file, and updates the log? I'd look at lsuser for the id running the ud program, and the permissions on the program executable. I'd take a direct look at the user and program groups; maybe an admin somewhere changed the user's group list, or someone recompiled the ud pgm & changed ownership, ... You're sure that it doesn't even get into the ud program? Could it be trying to open a file that it can't for some reason (again, a group change would do this) near the top of the program (or trying to execute a sub, etc), then exiting the program, returning to the script before it clears the old file?
> To: firstname.lastname@example.org > From: charles_shaf...@ntn-bower.com > Date: Fri, 5 Aug 2011 11:04:08 -0500 > Subject: Re: [U2] Job won't run > > >> George > >> Since you say it's sending the same file each day, then it's not > >> just the Unibasic that is not running, the rm isn't working either, > >> otherwise, you would be sending a blank file over and over. > > The remove and touch affect the log file. The data file is cleared in the > program. Since the program doesn't execute, the file doesn't change. > > * Clear the output file > OUTPUT = "/NTN/DATA/CORPORATE/FILES_AS400/BOWER_FPO" > PCPERFORM "rm ":OUTPUT > PCPERFORM "touch ":OUTPUT > > >> How are you running this script from the AS400? rsh? If so, has > > The actual command on the AS400 is: > RUNRMTCMD CMD('/NTN/DATA/CORPORATE/PROCESSES/fpo_as400') > RMTLOCNAME('xx.xxx.xxx.xx' *IP) RMTUSER(xxxx) RMTPWD(xxxxxxxx) > I looked into this one time and the AS400 is running an rsh underneath. > > >> has the user that running it on the AS400 changed? > They say no and I believe them because it would have affecteed many jobs. > This is Redhat and the default shell is bsh. We run lots of ksh scripts > on it. They were ported over from Tru64 many years ago. > > Charles Shaffer > Senior Analyst > NTN-Bower Corporation > > > > > George Gallen <ggal...@wyanokegroup.com> > Sent by: u2-users-boun...@listserver.u2ug.org > 08/05/2011 10:34 AM > Please respond to U2 Users List > > To: U2 Users List <email@example.com> > cc: > Subject: Re: [U2] Job won't run > > > Since you say it's sending the same file each day, then it's not > just the Unibasic that is not running, the rm isn't working either, > otherwise, you would be sending a blank file over and over. > > How are you running this script from the AS400? rsh? If so, has > the user that running it on the AS400 changed? Could they be logging > in under the C Shell? I don't know if Korn scripts will run under csh, > never really tried it. > > George > > > -----Original Message----- > > From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- > > boun...@listserver.u2ug.org] On Behalf Of charles_shaf...@ntn-bower.com > > Sent: Friday, August 05, 2011 11:27 AM > > To: U2 Users List > > Subject: [U2] Job won't run > > > > I have run into something I have never seen before. We exchange a lot > > of > > data with an AS400 in Chicago. For many years we have taken the > > approach > > that the AS400 would submit a job to our UNIX box that would run a > > script. > > Many of the scripts run a Unibasic program and send the resulting file > > back to the AS400. This happens several times a day and we have been > > doing this for many years. > > > > One job has started doing something odd. It runs the script and > > transfers > > the file, but never runs the Unibasic program, so it has been resending > > an > > old version of the file. This seems to have started happening 3 days > > ago. > > I can log in manually using the same credentials as the remote job, > > and > > run the script by typing it in at the command line. It runs perfectly. > > Unibasic program runs, new file is sent to the AS400. There is joy. > > > > I have checked permissions. Nothing has changed at the AS400 end. > > Nothing > > has changed here. (That we know of). I have rechecked the code of he > > script and the Unibasic program. Looks good. I am stumped. Here is > > the > > script code. > > > > #!/usr/bin/ksh > > #Sends FILES_AS400/BOWER_FPO to AS400 as BOWER_FPO > > > > LOG="/NTN/DATA/CORPORATE/FILES_LOG/BOWER_FPO.LOG" > > rm $LOG > > touch $LOG > > cd /NTN/DATA/CORPORATE > > > > echo `date` "Extracting Firm Planned Orders to BOWER_FPO" >$LOG > > $UDTBIN/udt<<EOD>>$LOG > > RUN GD-BPGM EXTRACT_FPO -N > > bye > > EOD > > > > echo "Sending Firm Planned Orders to AS400 730" >> $LOG > > /usr/local/rputj.scr CORP BOWER_FPO FILES_AS400/BOWER_FPO BOWER_FPO > > echo `date` "Finished sending Firm Planned Orders" >>$LOG > > > > This runs perfectly when run from CL, but not when submitted from the > > AS400. And ideas? > > > > Charles Shaffer > > Senior Analyst > > NTN-Bower Corporation > > _______________________________________________ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users