Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change WRKSPLF?

Status
Not open for further replies.

ceiuser

IS-IT--Management
Apr 5, 2003
8
US
Does anyone know how to modify the WRKSPLF command to include new options?

The problem we are having is that we are using IBM inforprint server which will allow userst to email spool files in PDF format. In order for the user to change the parameters of where the email is going to and who it is coming from, you must change the USRDFNDTA paramter on the change spool file command. Since most of our users have a operational assistance level at basic, they cannot get to this parameter.

Any help would be appreciated, thanks
 
Are you talking about UsrDta or UsrDfnOpt or UsrDfnObj? I don't see a parm for UsrDfnDta.

RedMage1967
IBM Certifed - RPG IV Progammer
 
It is definitely User Definde Data (USRDFNDTA) and when looking at the attributes for a apooled file, it is right before USRFNOBJ.
 
What release are you running? On V5R1, the USRDFNOPT comes before USRDFNOBJ.

RedMage1967
IBM Certifed - RPG IV Progammer
 
That might be it, we are running on V5R2 and the USRDFNDTA in an area where you can place things like the MAILTAG and MAILSENDER paramters to use with IBM Infoprint Server.
 
Have you tried copying the command to a different Library (like MYGPL) and then doing a CHGCMDDFT for the parm in question?

RedMage1967
IBM Certifed - RPG IV Progammer
 
No I have never used that but I will try and poke around with it. Thanks for the help.
 
Just be careful when you do, and make sure that the library that you put the new CHGSPLFA in is higher on the LIBL than the library (QGPL, I think) where the original command resides. Otherwise, the original command will be selected first, instead of your new one.

RedMage1967
IBM Certifed - RPG IV Progammer
 
I will, thanks.

Any idea on how to modify what is shown for spool files when the user level is set to *basic?
 
No, I have the users who need to access their spool files either sent to intermediate or I have a program interface that takes care of everything for them, without me having to allow them all that much higher access.

RedMage1967
IBM Certifed - RPG IV Progammer
 
That is the dilemna which is facing us right now, will have to figure something out.

As far as your user interface goes, what are you using to capture the spool files to begin the interface and does it take long to process?
 
I'm doing a wrkoutq to a splf. I then copy then copy that spoolfile back into a pf, extract all of the file names along with their spool file nbr and qualified job name. I then load the data to a subfile that is displayed.

This is just a general overview of how I deal with it.

RedMage1967
IBM Certifed - RPG IV Progammer
 
The SPLF0200 format of the QUSLSPL API returns all (and more) of the data on the WRKOUTQ command and it returns the data into a user space which you can access just like reading subfields in a data structure. Because you don't have to create a spool file then copy it to a PF and read the file it is a lot quicker.

One of my comrades had a bit of CL which printed a joblog but then got into a loop and had created a few hundred spool files before we realised! After having to type "4" against each one of them I was pretty hacked off and was wishing there was an F13=Repeat command on WRKSPLF! The result was that I wrote a utility which shows selected spool files (for user/outq/formstype/daterange) in descending date sequence so that you see the newest first. Any options that I want to add can just be slotted into the subroutine which reads the SFL and executes the selected command.

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top