How to get the Job attributes of a relatively old spool file

5 pts.
Tags:
AS/400 Spool Files
WRKSPLF
how can I retrieve JOB(NUMBER/NAME/USER) of a spool file generated by other user few days ago, I know the spool file name and I am able to view all that I need through the command WRKSPLF and pressing F11, but I need to automate the process.

Software/Hardware used:
software

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne
    Since you cannot output the WRKSPLF to a disk file, you can output to *PRINT then copy that to a disk file and write something to process that. Not the best way. * The best would be to use an API to get the data that you want. I am not familiar enough with them to tell you which one to use, but I am positive someone else will be able to give you that guidance. Here is a link that may help http://www.think400.dk/apier_8.htm
    41,380 pointsBadges:
    report
  • philpl1jb
    Option 8 on an item in WRKSPLF will show that info.
    49,960 pointsBadges:
    report
  • philpl1jb
    But I haven't got an answer to programatically retriving this data.
    49,960 pointsBadges:
    report
  • philpl1jb
    Of course .. let me get in the way back machine, I've done this .. wrksplf can be restricted as you described and output to *PRINT -- this contains your info Copy it to a file and extract your data. Phil
    49,960 pointsBadges:
    report
  • TomLiotta
    I know the spool file name and I am able to view all that I need ..., but I need to automate the process. What do you need to automate? Displaying the attributes of that spooled file? That would be easy, but I assume it's something more complicated. For example, I assume that you need a program to search through a list of spooled files for a user and to find the one with the known name and with the latest creation date. Or perhaps you know that a job with a known name runs every day, and you want a program to find the most recent job with that known name in order to locate the spooled file. Or...? It isn't clear what you want to happen in an automated process. Please provide a description of the desired process. Tom
    125,585 pointsBadges:
    report
  • Builtin
    hello you can find a number of API's to transfer spool file into disk file or you can use FTP also. Than make a new job if you dont have authority to change other user job or you can do it with the simple command WRKUSRJOB search for the job there you can change the status of JOB or Schedule it also.
    100 pointsBadges:
    report
  • Splat
    If you list the contents of an output queue using the QUSLSPL and the SPLF0200 format you can retrieve the various attributes of the spool files including the job information. IBM has an example here which includes a bit about the keys.
    7,235 pointsBadges:
    report
  • Bonx
    [...] 4. Philpl1jb and CharlieBrown show Bonx how to get to the job attributes of an old spool file. [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following