Anmelden

View Full Version : spool automatisch in OUTQ



Zuther
20-04-15, 19:09
Hallo!

Gibt es eine von allen Usern bestimmte spools in eine outq einzustellen.

Die Spools wurden bereits gedruckt. In dem unteren Beispiel kann ich zwar die Spool auswählen aber die einzeln in eine outq zu bringen ist ziemlich umständlich. Sicherlich kann ich die Spool mit "2" auswählen. Dies sollte aber möglichst automatisch funktionieren!
Vielleicht habt ihr eine geniale Lösung?

Vorab schon mal vielen Dank für Eure Hilfe!

Mit Spool-Dateien arbeiten (WRKSPLF)

Auswahl eingeben und Eingabetaste drücken.

Dateien auswählen für:
Benutzer . . . . . . . . . . . *all Name, generisch*, *CURRENT...
Druckeinheit . . . . . . . . . *ALL Name, *ALL, *OUTQ
Formularart . . . . . . . . . *ALL Formularart, *ALL, *STD
Benutzerdaten . . . . . . . . *ALL Benutzerdaten,generisch*,*ALL
ASP . . . . . . . . . . . . . *ALL 1-32, *ALL, *ASPDEV
Spool-Datei . . . . . . . . . afr215pf Name, generisch*, *ALL
Jobname . . . . . . . . . . . . *ALL Name, generisch*, *ALL
Benutzer . . . . . . . . . . . Name, generisch*, *ALL
Nummer . . . . . . . . . . . . 000000-999999, *ALL

B.Hauser
21-04-15, 05:59
Hast Du schon mal versucht alle betroffenen Spoolfiles mit 2 auszuwählen und dann auf der Befehlszeile outq(NeueOutQ) einzugeben?

Birgitta

malzusrex
21-04-15, 06:59
Wenn es viele Spools sind, dann wirst du dir wohl ein Programm dazu bauen müssen.
ZB mit dem API QUSLSPL die eine Übersicht über die Spools verschaffen und dann halt ändern.

Gruß
Ronald

Zuther
21-04-15, 07:33
Hallo Birgitta und Ronald,

vielen Dank für Eure Antworten. Leider habe ich keine Ahnung wie man API Quslspl verwendet.
Vielleicht könnt Ihr mir ein bisschen helfen?
mfg
Hans

RobertMack
21-04-15, 07:57
Braucht es denn diesen Aufwand (API Quslspl)?

Wenn die Spools bereits gedruckt, also mit SAVE(*YES) rumstehen und nur noch ausgelagert werden sollen, könnte ein täglicher CHGSPLFA FILE(*SELECT) schon seinen Zweck erfüllen. Welche Attribute stehen denn zur Erkennung zur Verfügung? Dateiname, Benutzerdaten, ...?

TARASIK
21-04-15, 08:07
Hallo,
hier gibt es zwei Möglichkeiten, die vielleicht helfen:

Duplicate spool file.

System iNetwork - AS/400 ( AS400 ), iSeries, and i5 news, products, technical help DUPCHGSPLF (Duplicate and Change Spool File) Utility Article Information Article ID: 15870 Pub: Club Tech Systems Management Tips Newsletter Date: January 07, 2003 There are several ways to duplicate a spool file: * Use CPYSPLF to copy it to a physical file, then using CPYF to copy back to another spool file. * Use the SNDNETSPLF command. * Use the SNDTCPSPLF command. Another method has been posted in the iSeries Network forums by prolific utility author Herman Van der Staey. His DUPCHGSPLF utility not only duplicates spool files, but also expands the number of spool attributes you can change beyond those offered by the CHGSPLFA (Change Spooled File Attributes) command. Here's a sample DUPCHGSPLF command: DUPCHGSPLF JOB(123456/QSYSOPR/BACKUP) SPLFILE(QPJOBLOG) + SPLNBR(*LAST) LPI(8) CPI(12) FONT(*CPI) PAGRTT(90) + OUTQ(MYLIB/MYOUTQ) DRAWER(2) OUTBIN(3) + NEWUSER(JOE) NEWSPLNAME(BACKUPLOG) The source code for DUPCHGSPLF, along with an explanation of the other methods to duplicate a spool file, are available at http://www.iseriesnetwork.com/Forums...ID=30314&mc=16. There's also at least one shareware utility available to duplicate files: Duplicate Spooled File (SPL2SPL) BVS Tools http://www.bvstools.com/spl2spl.html .. Penton Technology Media Copyright � 2007 - Penton Technology Media System i is a trademark of International Business Machines Corporation and is used by Penton Media, Inc., under license. SystemiNetwork.com is published independently of International Business Machines Corporation, which is not responsible in any way for the content. Penton Media, Inc., is solely responsible for the editorial content and control of the System iNetwork.

Zuther
21-04-15, 09:25
Hallo Robert,

hier steht eigentlich nur der Spool-Dateiname "AFR215PF" zur Verfügung.

Bei den Benutzerdaten wird der Name bzw. Kundenummer angezeigt.

mfg
Hans

Zuther
21-04-15, 09:36
Hallo Robert,

ich habe gerade festgestellt, dass diese Möglichkeit funktioniert. Allerdings bräuchte ich noch die Möglichkeit den Druck nochmal auszuführen.
mfg
Hans Zuther

RobertMack
21-04-15, 09:57
Einzeln sofort?
Gesammelt? Mehrmals täglich?

Was genau ist der Plan?