Printer file in AS/400 subfile

510 pts.
Tags:
AS/400 printing
AS/400 Spool Files
AS/400 Subfiles
Subfile
[strong]Hi, I need to generate a separate spool file,I have 10 records displayed in subfile,if i enter option 6 in subfile,for five records,these five records should generate a separate spool file... each record separate spool file[/strong]

Software/Hardware used:
AS400

Answer Wiki

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

If I am understanding correctly, you want to select multiple records in a subfile, and print a report (spoolfile) for each record.

you can do this by specifying the USROPN keyword on the spool files F-spec, and then in your program, after EXFMT of the subfile, do a READC loop to find the records with the option 6.

for each record found with option 6, OPEN the spool file, do any necessary processing to generate the spoolfile, and then CLOSE the spool file.

Discuss This Question: 1  Reply

 
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
  • MurrayInfoSys
    BigCat - He has it right on the money. In more detail: Loop for testing subfile options . > OPEN Spool file > . > calculations for printing the spool file > . > CLOSE Spool file . End Loop Simple as that. Enjoy, MIS
    940 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