Anmelden

View Full Version : Pflege von Kostenstellen im User Profil



StephanV
14-04-05, 08:53
Hallo *ALL,

ich hätte da mal wieder eine Anfrage. Um die Betriebskosten unserer Maschinen auf die Fachabteilungen aufteilen zu können, sollen wir die Kostenstelle an das Benutzerprofil hängen. Jedoch empfinde ich es als umständlich, die Kostenstelle als zusätzlichen Vermerk im TEXT einzutragen, um später mit einem Query diese wieder aus dem Text herauszufiltern. Ein guter fachlich versierter Bekannter brachte mich auf die Idee, den Berechnungscode ACGCDE für die Eintragung der Kostenstelle zu nutzen. Da ich den Berechnungscode im USRPRF noch nie benutzt habe, kann ich mir von seiner Funktion keine Vorstellung machen. Auch eine Recherche im Internet und die Hilfe sind nicht wirklich ergiebig.

Trotz des guten Hinweises meines Bekannte, würde ich mich über eine fachlich versierte Aussage zu diesem Thema sehr freuen, da ich ca. 1000 Benutzerprofile anpacken muss.
Kann man im Berechnungscode eine 4stellige Zahl eingeben?
Ja, man kann. Aber Was, Wie funktioniert der Berechnungscode?

Gruß
Stephan Vogelfaenger

RobertMack
14-04-05, 09:47
Hallo Stephan,

möglicherweise erhältst Du Hilfe bei Datasoft, Herrn Krämer ( http://www.datasoft.de ), die vetreiben ein Job-Accounting-System (JOBBER400) und haben entsprechende Erfahrung.

Gruß,
Robert

MetinIsiktas
14-04-05, 09:50
Hallo, hier die komplette Beschreibung aus dem IBM iSeries Center:

"Job accounting in a distributed relational database
The job accounting function on the iSeries server gathers data so you can determine who is using the server and what server resources they are using. Typical job accounting details the jobs running on a server and resources used, such as use of the processing unit, printer, display stations; and database and communications functions.

Job accounting is optional and must be set up on the server. To set up resource accounting on the server you must:

Create a journal receiver by using the Create Journal Receiver (CRTJRNRCV) command.
Create the journal named QSYS/QACGJRN by using the Create Journal (CRTJRN) command. You must use the name QSYS/QACGJRN and you must have authority to add items to QSYS to create this journal. Specify the names of the journal receiver you created in the previous step on this command.
Change the accounting level server value QACGLVL using the Work with System Values (WRKSYSVAL) or Change System Value (CHGSYSVAL) commands.
The VALUE parameter on the Change System Value (CHGSYSVAL) command determines when job accounting journal entries are produced. A value of *NONE means the server does not produce any entries in the job accounting journal. A value of *JOB means the server produces a job (JB) journal entry. A value of *PRINT produces a direct print (DP) or spooled print (SP) journal entry for each file printed.

When a job is started, a job description is assigned to the job. The job description object contains a value for the accounting code (ACGCDE) parameter, which may be an accounting code or the default value *USRPRF. If *USRPRF is specified, the accounting code in the job's user profile is used.

You can add accounting codes to user profiles using the accounting code parameter ACGCDE on the Create User Profile (CRTUSRPRF) command or the Change User Profile (CHGUSRPRF) command. You can change accounting codes for specific job descriptions by specifying the desired accounting code for the ACGCDE parameter on the Create Job Description (CRTJOBD) command or the Change Job Description (CHGJOBD) command.

When a job accounting journal is set up, job accounting entries are placed in the journal receiver starting with the next job that enters the server after the Change System Value (CHGSYSVAL) command takes effect.

You can use the OUTFILE parameter on the Display Journal (DSPJRN) command to write the accounting entries to a database file that you can process.

For more information about job accounting, see the Work Management topic in the iSeries Information Center"

Grüße, Metin.

StephanV
14-04-05, 10:55
Hallo, hier die komplette Beschreibung aus dem IBM iSeries Center:

"Job accounting in a distributed relational database
The job accounting function on the iSeries server gathers data so you can determine who is using the server and what server resources they are using. Typical job accounting details the jobs running on a server and resources used, such as use of the processing unit, printer, display stations; and database and communications functions.

Job accounting is optional and must be set up on the server. To set up resource accounting on the server you must:

Create a journal receiver by using the Create Journal Receiver (CRTJRNRCV) command.
Create the journal named QSYS/QACGJRN by using the Create Journal (CRTJRN) command. You must use the name QSYS/QACGJRN and you must have authority to add items to QSYS to create this journal. Specify the names of the journal receiver you created in the previous step on this command.
Change the accounting level server value QACGLVL using the Work with System Values (WRKSYSVAL) or Change System Value (CHGSYSVAL) commands.
The VALUE parameter on the Change System Value (CHGSYSVAL) command determines when job accounting journal entries are produced. A value of *NONE means the server does not produce any entries in the job accounting journal. A value of *JOB means the server produces a job (JB) journal entry. A value of *PRINT produces a direct print (DP) or spooled print (SP) journal entry for each file printed.

When a job is started, a job description is assigned to the job. The job description object contains a value for the accounting code (ACGCDE) parameter, which may be an accounting code or the default value *USRPRF. If *USRPRF is specified, the accounting code in the job's user profile is used.

You can add accounting codes to user profiles using the accounting code parameter ACGCDE on the Create User Profile (CRTUSRPRF) command or the Change User Profile (CHGUSRPRF) command. You can change accounting codes for specific job descriptions by specifying the desired accounting code for the ACGCDE parameter on the Create Job Description (CRTJOBD) command or the Change Job Description (CHGJOBD) command.

When a job accounting journal is set up, job accounting entries are placed in the journal receiver starting with the next job that enters the server after the Change System Value (CHGSYSVAL) command takes effect.

You can use the OUTFILE parameter on the Display Journal (DSPJRN) command to write the accounting entries to a database file that you can process.

For more information about job accounting, see the Work Management topic in the iSeries Information Center"

Grüße, Metin.

Hallo vielen Dank,

den habe ich nicht gefunden. Wahrscheinlich habe ich nach den falschen Begriffen gesucht. Also nochmals vielen Dank.

Grüße, Stephan Vogelfänger