Dynamic Batch ProcessingMarch 19 10:00 AM
David Steger
Batch Types
• Run my routine in background right now • Run my routine in the evening or another day• Run my group of programs when requested• Run my programs on a regular schedule• Others?
Batch Processing with 36.14 Today
36.14.1 and 36.14.13
36.14.13
Dynamic Batch Processing
Dynamic Batch Processor
Batch Entries
Batch ParameterDefinitions
Dynamic BatchEntries
+
=
Dynamic Batch Processor
Batch Entries
Batch ParameterDefinitions
Dynamic BatchEntries
+
=
Standard QAD MFG/Pro
Dynamic Batch Processor
Batch Entries
Batch ParameterDefinitions
Dynamic BatchEntries
+
=
Date Formulas, Operations,
Etc.
Dynamic OperationsBlank
Literal - the data entered in the value field
UUnix Environment Variable: The Unix environment variable name is entered in the value field.
DThe date that is returned by the Date Formula that is entered in the value field
SSubstring of a value. Three parameters are entered in the value field:
P Value of another parameter
MMMonth of a date returned by the Date Formula that is entered in the value field
DDDay of a date returned by the Date Formula that is entered in the value field
Y2Year of a date returned by the Date Formula that is entered in the value field - the 2 digit year is returned
Y4Year of a date returned by the Date Formula that is entered in the value field - 4 digit year is returned
VValue of another parameter. This is used when "con-cating" the values of fields together.
Dynamic Date FormulasEOM End of Month
BOM Beginning of Month
EOY End of year
BOY Beginning of Year
TODAY Today's date
HI QAD High Date
HIGH QAD High Date
LO QAD Low Date
LOW QAD Low Date
LYD Last year's date (this date, but last year)
EOQ End of Quarter
BOQ Beginning of Quarter
ECP End of GL Calendar Period
BCP Beginning of GL Calendar Period
PER Period
Sun,Mon,Tue,Wed,
Thu,Fri,SatSelect this day of this week
+n Add n number of days
-n Subtract n number of days
Example 1: User Run Batch
Determine the Parameters
Determine the Parameters
Capture frame object“a”
Determine the Parameters
Load the Parameters
Load the Parameters
Modify Static Parameters
Modify Static Parameters
Define Dynamic Parameters
Using Date FormulasEOM End of Month
BOM Beginning of Month
EOY End of year
BOY Beginning of Year
TODAY Today's date
HI QAD High Date
HIGH QAD High Date
LO QAD Low Date
LOW QAD Low Date
LYD Last year's date (this date, but last year)
EOQ End of Quarter
BOQ Beginning of Quarter
ECP End of GL Calendar Period
BCP Beginning of GL Calendar Period
PER Period
Sun,Mon,Tue,Wed,
Thu,Fri,SatSelect this day of this week
+n Add n number of days
-n Subtract n number of days
Using Date FormulasEOM End of Month
BOM Beginning of Month
EOY End of year
BOY Beginning of Year
TODAY Today's date
HI QAD High Date
HIGH QAD High Date
LO QAD Low Date
LOW QAD Low Date
LYD Last year's date (this date, but last year)
EOQ End of Quarter
BOQ Beginning of Quarter
ECP End of GL Calendar Period
BCP Beginning of GL Calendar Period
PER Period
Sun,Mon,Tue,Wed,
Thu,Fri,SatSelect this day of this week
+n Add n number of days
-n Subtract n number of days
Test the Formula
Today, BCP, -1, ECP
Define Output
Run the Batch
Example 2: Scheduled Batchs
Dynamic Batch Scheduling
Queue Processor
Batch Schedule
Run Queue(batches)
+
=
Dynamic Batch Scheduling
Queue Processor
Batch Schedule
Run Queue(batches)
+
=
Run by cron:DB, Queue, at HH:MM
Dynamic Batch Scheduling
Queue Processor
Batch Schedule
Run Queue(batches)
+
=
Run this Queue onDate, Hour, etc.
Key Scripts
• bpsched
– The batch processor script bpsched is run on regular intervals each hour, up to once each minute. This script is executed by cron under the crontab file for the userid batproc. bpsched checks the minute number (00-59) to determine which combination of queue and database to execute that specific minute.
• schedpro2
– bpsched executes the script schedpro2. schedpro2 can launch multiple instances of the batch processor based on the data in it's configuration file. The configuration file lists database and pf file combinations. Configuration files are stored in the system batchproc directory.
• m9sched
– schedpro2 executes m9sched for each database defined in the configuration file. The m9sched script executes the progress session which runs t2bpstart.p from the QAD menu.
What is a Queue?
• Configured in bpshed
case $M in 00) $BP -q Q00 -c live 15) $BP -q Q15 -c live 30) $BP -q Q30 -c live45) $BP -q Q45 -c liveesac
Dynamic Batch Output
Queue Processor
Batch Output
Processor Run Logand
creates
Dynamic Batch Output
Queue Processor
Batch Output
Processor Run Logand
creates
Text Output, PDF Output,
Email to user, etc.
Define the Scheduled Batch
How the batch id can alter results
How the batch id can alter results
How the batch id can alter results
Other Operation TypesBlank
Literal - the data entered in the value field
UUnix Environment Variable: The Unix environment variable name is entered in the value field.
DThe date that is returned by the Date Formula that is entered in the value field
SSubstring of a value. Three parameters are entered in the value field:
P Value of another parameter
MMMonth of a date returned by the Date Formula that is entered in the value field
DDDay of a date returned by the Date Formula that is entered in the value field
Y2Year of a date returned by the Date Formula that is entered in the value field - the 2 digit year is returned
Y4Year of a date returned by the Date Formula that is entered in the value field - 4 digit year is returned
VValue of another parameter. This is used when "con-cating" the values of fields together.
Logs
Logs
Batch Log
Future SOX Enhancements
• Error detection via keywords– Email notification for job errors– Email notification for report errors
• Batch Run Access Restrictions– Group ID batproc can run all batch events– “Submitted by” used to restrict users to their batch events
• Enable/Disable extended to individual batch events– New “batch” or “background” events default to enable– All other new events default to disable
Dynamic Batch Processing
Top Related