HOW CAN I FIND ATTRIBUTES OF SPOOLED FILES?

0 pts.
Tags:
Help Desk
Tech support
I HAVE A FAXING APPLICATION ON MY AS/400 THAT CAN CAPTURE SPOOLED FILES AND FAX THEM. ABOUT 1 IN 10 TIMES THE FAX SOFTWARE CAPTURES THE REPORT WIDTH AS '84' INSTEAD OF '83' AND THE FAXED RESULT LOOKS WRONG. THE FAX SOFTWARE MANUFACTURER CLAIMS THEY CAPTURE THE ATTRIBUTES THAT THE SPOOLED FILE IS CREATED WITH. I WANT TO SEE THE ATTRIBUTES OF THE SPOOLED FILE FOR MYSELF BEFORE THE FAX SOFTWARE GETS TO IT TO DETERMINE IF, IN FACT, THE SPOOLED FILE IS CREATED WITH THE INCORRECT WIDTH. HOW CAN I GATHER THAT INFORMATION FOR A SPOOLED FILE? ANY SUGGESTIONS? THANKS
ASKED: June 14, 2005  5:27 PM
UPDATED: June 16, 2005  9:38 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Use a CL to override your printer file attributes, eg,

OVRPRTF FILE(PRINTER) PAGESIZE(80 198). This sets the page length to 80 lines and a width of 198. This forces concise setting for your spooled output. You can also place output to hold in the CL (SPOOL (*NO, HOLD(*YES), SAVE(*YES)). THis means that u will hold the spool file and save a copy of it after printing. In this case, u are not req’d to print it, but saving a copy will allow u to also display the attributes.

To display the attributes for your spooled file, search for the copy of your saved spool file, use option = 8 (attributes), page down until u come to this page (page down abt 3 x)

Page range to print:
Starting page . . . . . . . . . . . : 1
Ending page . . . . . . . . . . . . : *END
Record length . . . . . . . . . . . . : 80
Page size:
Length . . . . . . . . . . . . . . . : 66
Width . . . . . . . . . . . . . . . : 132
Measurement method . . . . . . . . . : *ROWCOL
Lines per inch . . . . . . . . . . . . : 6
Characters per inch . . . . . . . . . : 10
Overflow line number . . . . . . . . . : 60
Fold records . . . . . . . . . . . . . : *NO
Control character . . . . . . . . . . : *NONE

The Page Size panel is the one u are interested in. In this case, the length of the spooled file = 60 lines and the width is 132 chars.

If you are just a user and do not code CL, then u can always do a change spool file (select option =2 (Change) against a specified spooled file, and save a copy before the fax software gets to it. Then use the method above to display the attributes. If u are coding the program, re-design to run your ILE/RPG program from the CL call. Then include the OVRPRTF command into the CL program

Discuss This Question: 3  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
  • MilesButler
    Hi Have you looked into the Spool File APIs that are available to list spool files and extract spool file attributes. "The Retrieve Spooled File Attributes (QUSRSPLA) API returns specific information about a spooled file into a receiver variable. The size of the receiver variable determines the amount of information returned. You can specify the spooled file for which information is returned either with the internal job and spooled file identifiers, or with a specific job name, spooled file name, and spooled file number." Miles
    0 pointsBadges:
    report
  • MilesButler
    Hi Have you looked into the Spool File APIs that are available to list spool files and extract spool file attributes. "The Retrieve Spooled File Attributes (QUSRSPLA) API returns specific information about a spooled file into a receiver variable. The size of the receiver variable determines the amount of information returned. You can specify the spooled file for which information is returned either with the internal job and spooled file identifiers, or with a specific job name, spooled file name, and spooled file number." Miles
    0 pointsBadges:
    report
  • Jaicee
    Depending on how the vendor's app works there's a few things you may want to do. Does the fax app require that you modify your programs to use it, or do you just send spool files to an outq that the app then faxes from? If it's the latter, do they have an option to save copies of the sent files? If they do, you can then go into the queue and look at the spool attributes as they were when the file was faxed. The other thing you might need to look at is the program(s) that produce the spool file in the first place. There could be an override in there somewhere that you're not aware of. Does it always happen with the same report or is it random? If you can see the spool file in the queue, the program name that created it is usually kept in the user data (USRDTA()) parameter.
    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