Beruflich Dokumente
Kultur Dokumente
Jimmy Sansi
Contents
Custom Print File Overrides ......................................................... 2
Backing Up ................................................................................. 16
First you will need to create the report override record in the
Cross Application Support module. The Printer file name is
one of the parameters you will use when to pass to the
AXZPOV1R program when called.
CALL PGM(ORDACK)
DLTOVR FILE(ORDACKRP)
MONMSG MSGID(CPF9841)
ENDPGM
Date Conversions
Dates stored in the XA database files are stored in a non-
standard 7 digit format of CYYMMDD that does not work
well when using them with RPG or CL programs and you
can‟t easily use the date operations ADDDUR or SUBDUR
functions without scrubbing the date into a more
standardized format such as MMDDYY.
Parameter Description
0 = System value
1 = MMDDYY
2 = DDMMYY
3 = YYMMDD
4 = CYYDDD (Julian)
„ „ = No Error
„E‟ = Parameter Errors
„I‟ = Invalid date
ENDPGM
ENDPGM
Parameter Description
ENDPGM
AMIAI10R
Assign purchase order number. This program retrieves the
next available purchase order number from the SYSCTL file
and then increments the record. You should never access
and directly make changes to SYSCTL!
AMIAI01R
Access and maintain purchase order master file POMAST.
AMIAI02R
Access and maintain purchase order item file POITEM.
AM6AI01R
Access and maintain the purchase order comments file
POCOMT.
Parameter Description
ZDATI02R
Purchase order item file POITEM for program AMIAI02R.
ZDAT601R
Purchase Order comment file POCOMT for program
AM6AI01R.
The best way to get a thorough layout for each of these files
including extended field descriptions and requirements is by
utilizing the File Record Layout Report AMZ14 that you
can run by selecting the appropriate option off of the
Reports menu in Cross Application Support module by
selecting to “Specify Files.” Not only will this report list all
of the fields but often times the correct data for key fields
including the characteristics for those fields.
Here is some sample ILE RPG code for both the prototype
specifications and the data structure definitions used to
retrieve an available PO number and maintain the POMAST
file.
d RTVPONbr PR EXTPGM('AMIAI10R')
d RTNCD 1
d FNCTN 1
d LCKOUT 1
d PONBR 7
d CRTPOM PR EXTPGM('AMIAI01R')
d RTNCD 1
d FNCTN 1
d LCKOUT 1
d POMRCD like(dZPOMST)
Release 5 Considerations
Backing Up
One of the more important responsibilities performed by a
system administrator is ensuring a good backup is running
daily. If the schedule of your business operations allow it
running the XA backup routine is a good idea. Not only will
it save important data files the backup job does some other
maintenance tasks as well so if your shop isn‟t running
twenty-four seven or can at least spare a couple hours of
downtime you should definitely run the XA backup routine.
If after all this you are still having problems with the backup
not getting dedicated mode try ending and re-starting the
QUSRWRK subsystem from within the pre and post backup
routine. Doing this along with ending the interactive
subsystems will essentially cut off all access to the system
ensuring there are no jobs keeping any locks on files
preventing the backup from running. The downside of doing
so is that after the pre backup job runs if for any reason the
backup job fails to get dedicated mode it just ends and
doesn‟t run the post backup job, so if you have shut down
all the subsystems no one can access the system including
the administrator whom then needs to start all the
subsystems again. One way to get around this is to create a
second interactive subsystem that requires a specific device
name to connect that an administrator can log into to start up
subsystems.
Backup Methods
Release Considerations
ENDPGM
ENDPGM
After finding out the current PCM level get on the Infor
support site and download informational PTF SH12472.
This PTF contains a list of all PCMs and the corresponding
pre-requisite download for all PCMs dating back to XA
release 4.
You must also carefully read the cover letter for the PCM,
that is part of the PCMs pre-requisite download, you are
about to apply as it will almost always have a list of
additional individual pre-requisite PTFs you must apply
before you can apply the PCM. This will be followed up by
post apply instructions or additional individual PTFs that
must be applied. This is a very important step and failure to
follow the cover letter can result in serious errors or the
PCM apply to fail altogether.
The PCM load and apply process can vary in length of time
depending on how many changes are contained on the CD.
It is recommended that you backup your environment (the
PCM programs will prompt you to do so) just in case
something goes awry.
Database Tuning
It used to be that in the not so distant past the IT
programming staff for a company generated all of the
reports, programs and modifications for a given software
system. Because of this dependence on highly skilled
individuals tight control could be exerted over the design of
these programs and modifications ensuring performance of
the system, programs and underlying database did not
needlessly suffer from degradation due to poor process and
coding design.
Query Optimizer
By now you are probably just how many new indexes are
going to have to be created to accommodate all of these
requests. So when it comes to database tuning an
indispensible tool is the SQL Performance Monitor feature
of iSeries Navigator.
1
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzajq/r
zajq.pdf
SQL Performance Monitor
System Performance
Here are a few general system performance tips to help keep
your system running at peak performance. Of course no
amount of tuning is going to help an undersized system that
is running at full capacity. An in depth discussion on
OS/400 performance analysis and tuning is beyond the
scope of this book but visit www.redbooks.ibm.com for
more information.
Books
CISTech covers the Atlantic coast and South East and has
also developed many great XA add on modules for
accounting, general ledger, inventory and RF transactions.
www.cistech.net