Title: Pmtout File Locations
mghleclair21 - January 9, 2008 06:44 PM (GMT)
Does anyone know how I can set the PR160 to output the PMTOUT file to a specific location no matter who runs the job?
schroncd - January 9, 2008 09:06 PM (GMT)
hmmm.. There's no setting that will accomplish it, but you might set up a token to copy the PMTOUT file to your desired location, then include that as the last step in a multi-step job. If you're a Unix shop you can also create a script to capture the output and rewrite it elsewhere, then define it as a printer - adding the printer to the distribution group should get it where you want it with the name you want.
MannieJ - January 9, 2008 11:54 PM (GMT)
The secret really is the 9000-LAWDIRWORK-FILE-PATH routine called by PR160.
What I did was create a PD library routine to emulate 9000-LAWDIRWORK-FILE-PATH but added the directory I want.
Just make sure you don't modify PR160 but clone it.
mghleclair21 - January 10, 2008 02:51 PM (GMT)
Is it really such a bad thing to modify Lawson programs?
mghleclair21 - January 10, 2008 03:02 PM (GMT)
looking at the prlawdpd, the file should be going to the work directory, but it does not, it's being placed in the the user/job name/1/ directory. Maybe we're missing a parm or something? If it was going to the work directory, I would have no problem, but what I'm running into is that I am having a hard time automating the printing of the pmtout file because it could be anywhere.
Does this same type of logic apply to the tape/ach file?
dlbritton - January 24, 2008 11:31 AM (GMT)
I am using LSF9 on Sun Solaris and wrote a "cgi-bin" script to create a web page to copy files from a print directory to a predefined destination directory. Under LSF9 I was able to capture the user ID and have the ability to call Lawson commands such as cnvexp. (Under 8.0.3 technology you could not call Lawson commands using a cgi-lawson script).
I created separate scripts for ACH, the EEO-4 and the NewHire report. The user enters the job name and I handled the rest. This method sort of applies security in that a user can only copy their own output. I created a generic version for myself that promps for user name, job name and file name to copy.
I was planning on posting these scripts to schronce.net in the near future.
SAH - January 24, 2008 12:39 PM (GMT)
Just curious - our PMTOUT file does go to the work directory - do your users possilby have a path entered on the PR160 that they run (under the filename tab)?
I should probably just stay out of this....
Good luck
mghleclair21 - January 24, 2008 06:32 PM (GMT)
There are no paths entered on the jobs, and I would be so tickled if they went to the work directory. That would make my life so much easier, especially if the tape/ach file worked the same way.
I'm open for any and all suggestions.