T24 Frequently used Core routines.doc



Comments



Description

S Core routine Descriptionno 1 APP.STATIC.TEXT Returns array of application messages from the static text translation file. The messages are defined by the application and their translations (entered by the user) are read in at run time. 2 AWD Checks whether the given date is working day or not 3 B.UPDATE.BATCH Adds a batch job to an existing batch process. Enables application programs to initiate ad-hoc jobs in the overnight run. 4 BATCH.BUILD.LIST Selects the IDs and builds the joblist for processing 5 BD.CALC.DAYS Calculation routine for interest accrual taking into account the AIBD. 6 CACHE.READ Read Parameter files 7 CALC.ERATE.LOCAL This routine calculates an exchange rate given a foreign amount and local currency equivalent. 8 CALCULATE.CHARGE Calculates charges, commission and tax amounts and returns enough information to raise the accounting entries. 9 CALENDAR.DAY Calculates forward or previous date from a start date using the frequency 10 CALLJ Call Java program 11 CDD Calculates the difference, in days, between two supplied dates 12 CDT Calculates forward or previous date from a start date using the number of days. 13 CFQ Calculates the next date from today's date and a frequency code. 14 CHECK.ACCOUNT.CLASS This routine will take a given category and sector and ensure that there is a match on the appropriate account class. 15 CHECK.ROUTINE.EXIST This routine is used to check if a program is compiled or not. This is program will work in UV/jBASE. 16 COMMON.RESTORE Program restores the common variables from a named common area that was saved earlier by COMMON.SAVE. 17 CUS.AC.EXTRACT This will return a populated CUSTOMER.POSITION record for a given account number and company. 18 CUSTOMER.RELATIONS This subroutine will return any customers that are related. 19 CUSTRATE Perform all the tasks involved in foreign exchange of two currencies on a buy/sell basis 20 DAS 21 DBR Returns a field from a record for 'checkfile' processing. 22 DIETER.DATE This routine converts dates from the format used throughout GLOBUS (YYYMMDD) to the standard UniVerse format (either internal or external. External dates formatted as per UniVerse CONVERSIONs) 23 DISPLAY.MESSAGE Routine to display a status message for the user. 24 DUP Checks for duplicate occurrences of values in multi and sub-valued fields at cross-validation. . the maximum no.CALC. Invokes the routines to validate & post entries.PARAM 27 EB.CALC.CONSOL.FORMAT and STMT. 10. . rate and other details are passed as incoming parameters. two decimal places.NARR.HISTORY. The narrative is calculated according the definitions in TRANSACTION. 32 EB.using the lowest unit of currency (e.TERM When Pricipal amount outstanding on the contract. 35 EB. ccy.CLEAR. OR.STMT. but can be used elsewhere. 30 EB.05 etc.DETERMINE.CALC This routine will return an interest amount based on a given base amount at a specified rate. 29 EB. this routine will return Number of payments due. 36 EB.RATE.NARRATIVE Subroutine to return a calculated statement entry narrative for enquiry purposes.YTM. OR.INTEREST. rate and other details are passed as incoming parameters.LOCAL. by: - using. 34 EB.25 E.ACCOUNTING Application interface routine to the accounting system. determines the suspense categories for value dated transactions (value dated accounting) and maintains currency positions. by default.READ.IRR Calculate the yield to maturity or internal rate of return for a series of cash-flows 31 EB.GET.AMT Enquiry Subroutine to calculate the local currency equivalent using MIDDLE.RATE This routine formats rate values depending upon the system settings.FORMAT.GET. 37 EB. ccy.ROUND.DATE This routine will determine the date a payment should be valued.LOCREF.REC This subroutine will read a record from a specified HISTORY file Initially this will be used in EOD.AMOUNT Formats amount according to currency definition.SETUP This routine will return the local reference data of a specified application.the value date for the schedules are determined. Can be used only within the confines of a template program.Based on the day convention and the business centres.CONV. If extended precision is on.PAYMENT.) AND -rounding according to the lowest unit 40 ERR Displays error message on the same line as the input field or on line 22 if running under a multi-line version. 38 EB. .CALC. 0.CURR.NARR. 39 EB. 28 EB.REPAYMENT When Pricipal amount outstanding on the contract. It will also return the rounded amount if the currency code is passed. STMT.FILE This routine will clear each partfile is the file is distributed else a normal clear will be performed.g. this routine will return caculated repayment amount.UPDATE.CONV Program to convert a currency amount to another currency amount 33 EB.READLIST Routine to return a list of keys from a select statement.using the defined number of decimal places for the currency. Total no of digits allowed for a rate value is 11. of decimals allowed is 9 else it is 6.CHECK 26 E. READ.WRITE Writes a record to a file 53 FATAL.ERROR Application fatal abort: displays an error message.CCY. Should be called for all 'fatal' errors in both on-line mode and batch. BUY or SELL CCY. then this is set to 'N' indicating the rate is out of bounds. If it is set to 'O' then the rate needs an override and if set to 'Y' then rate is okay.NAMES Converts fields numbers (as defined in the standard selection record) to field names 56 FIND.41 EXCEPTION.CONVERT.READU Read a record with a lock 51 F.HISTORY This subroutine will read a record from a specified HISTORY file 50 F. d) Recalculates foreign and local amounts and returns the difference.MATREAD Read a dimensioned array from a file 46 F.NUMBERS.LIVE.MKT Program to find currency market .DELETE Deletes a record from a file 44 F. exits from 'EX' and updates the PROTOCOL file. 3) Tolerance exceeded . a relevant message is returned in ETEXT.This field indicates which of the currencies has a FIXING DATE rate and the current date does not match the date the rate was last fixed. 43 F. If this field is set. the routine is terminated only if the suspension indicator is not set to 'BLOCKED'. 2) Suspended market . e) Calculates a percentage exchange rate difference when a rate is passed.READV Read a field on a record from a file 52 F.READ Read a record from a file 49 F. For BUY and SELL. B) Converts a local amount to a foreign amount when a local amount is passed but not a foreign. 54 FCY.CCY and 3 that both are.MATREADU Read a dimensioned array record from a file with a lock 47 F. If the indicator is set then its value is return in RETURN.CHECK Performs the following functions: a) Converts a foreign amount to a local amount when a foreign amount is passed but not a local.LOG Log all EOD errors so they can be reported at then end of the EOD processing. C)Calculates an exchange rate when both a foreign and local amount is passed. Note: Suspension is not currently available as an option in CURRENCY.tolerance for the company.MATWRITE Writes a dimensioned array (record) to a file 48 F.TO.CODE. If the routine is terminated.CCY is in error. then 1 indicates BUY. 55 FIELD. If the LOCAL is suspended this automatically terminates the routine.If the DIFFERENCE in terms of the local currency is greater than the maximum conv. 42 EXCHRATE 1) Fixing date error .WRITE writes the current details in the record to history and updates with new details to the record with the audit fields 45 F. 2 that it is the SELL.This indicates that one of the currencies has had quotes suspended whether it be the LOCAL. 63 GET.rate by this program. The routine contains a dimensioned cache of Standard Selection records T.STANDARD.FORMAT applications. 59 GET.or sub-values.NEXT. 68 JOURNAL. if the field has been expanded with extra multi. It is called as part of the cross-validation processing.ACCOUNT files.CONV Program to convert a currency amount to another currency. Defaults may be obtained from Portfolio (SEC.NULLS.ID when application informations are passed in common variables. STMT.CHECK This subroutine is used by applications both online and end of day to verify and update the limits system.ACCT or NOSTRO. AGENCY. 73 LIMIT. 67 INP Routine to prompt for input and validate. This routine will cater for conversion to a currency not defined in the current company.UPDATE 69 JULDATE Convert from Julian to Gregorian date format and visa versa 70 LCK Displays record locked message 71 LIMIT.NARR.SS. The application is required to supply the correct values from the transaction in order to give the correct update to the system.IDS.COMPANY This routine gives the correct lead company mnemonic for doing the OPF on the account file.PRODUCT This subroutine is used by applications to validate and default the Limit Reference used in a given transaction.SETTLEMENT. Xrate is calculated as to.SELECTION record and merges the SYS and USR fields together. assuming that the call parameters have previously been validated. 72 LIMIT.LOC. and if there are any null values.CCY.ACC.NARRATIVE Subroutine to return calculated statement narrative using TRANSACTION. 58 GET.DEFAULTS This routine is used to get the default account and settlement details for a particular customer and application.COMPANY get the Lead company and its mnemonic details 60 GET. 65 GIT 66 IDESC Subroutine to return the value of an I-descriptor. local field name is passed. 64 GET. . CUSTOMER.SELECTION.rate/from. This routine is used in places where the job runs in master company and the account records of the other book and other company have the limit that exist in the Master company attached to them.REC and dynamic list of Standard Selection ids T.PARAM and STMT.REF when application name.CHK This routine will check for a particular field.DETS The routine reads the STANDARD.CURR. this routine will return the local field position by refering to standard selection table 61 GET.ACCOUNT.SS.57 FT. 62 GET.this routine will return the new @ID.NARR.MASTER). The currency from is assumed to be the base currency.GET. Determine if we're running GUI and invoke the correct routine. BULK. e) Calculates a percentage exchange rate difference when a rate is passed. 75 LOCAL. and the enrichment. Handles company modification of file name hence.COMPANY Builds and loads a company profile into I COMMON.OFF Redirects output from the print unit to the screen. 82 PRINTER.FIELD This routine takes the field number.FORMAT parameters.74 LOAD.BULK. Ie you could define a header format and then merge in the actual deal slip data.NO and forces the redisplay of the field. it must be called for all file opens.DEAL. 90 REM Displays a message on line 23 and prompts to continue. f)Note: The middle rate is used for all calculations unless a rate is explicitly passed. multi value and sub value specified in REFRESH.SLIP. 83 PRINTER. 76 MIDDLE.MANAGER Routine to call OFS. C) Calculates an exchange rate when both a foreign and local amount is passed. For output if the terminal supports a local printer then this is used otherwise it gets sent via report control.RATE.MESSAGE used for performing OFS transactions within transaction boundary 80 OPF File open routine. 77 MSK Masks input to a specified format 78 OFS. 89 REFRESH. 85 PRO Outputs a message to the protocol file for audit or exception purposes.CALL.CLOSE Spools report as directed by the report control system.SCREEN Invokes MATRIX.CHECK Performs the following functions: A) Converts a foreign amount to a local amount when a foreign amount is passed but not a local. This routine must be used instead of the Data/Basic PRINTER OFF statement. B) Converts a local amount to a foreign amount when a local amount is passed but not a foreign. Using a dumb terminal this is output via the slave printer port. The DEAL.MANAGER from an application 79 OFS. 81 OVE Prompts for an override and validates Y/N input. 87 PST Opens/closes printer for output and defines headers 88 REBUILD. This subroutine must be used in place of the Data/Basic PRINTER CLOSE statement. This routine must be used instead of the Data/Basic PRINTER ON statement. When using GUI this is sent to the GUI Client which in turn prints it on the comx/lptx port.ALTER to reset screen pointers for automatically expanded multi-values.ON Sets up the printer environment for the report and directs output to the print unit. 86 PRODUCE. This routine must be called for a change of company.CONV. d)Recalculates foreign and local amounts and returns the difference.SLIP argument can be a dynamic array of deal slip id's to be MERGED prior to output.PRINT Subroutine to print data to the local printer. . 84 PRINTER.SLIP Routine to format & print a deal slip based on the DEAL.FIELD.POST. by the report control system.BUILD.LOCAL. 94 SPOOL.PART.SET.AUDIT. 99 TXTINP Prompt user and accept user input 100 VALIDATE.ERROR Routine to store error messages by field.FIELDS "V" should be assigned with the last field number 104 writes the current details in the record to history and updates with new details to the record with the audit EB.9999 EXCEEDS TOLERANCE BY 10%. This routine must be used instead of executing a spool command.NEXT. 93 SC. expiration of passwords etc.SIGN.FILE entry to be used in REPGEN is RG.DAY finds out whether the start date and the end date are non-working dates.REPORT Spools a report. PGM.TABLE record.LAST.MATCH Routine to return the last id from a list of ids which match the first few characters passed in argument FIRST. This is only intended for use with COMO files.protocol logging. 98 TXT Translates dynamic messages.FORMAT.ID.UPDATE. Common variable S. The message can contain a variable portion e.LOCAL. Handles all sms checks.ON Routine to validate sign on name & password.END. 97 TRANSACTION.TABLE. RATE 99.CCY.GET. to be displayed at the end of validation processing. 95 STORE.RECORD Build OFS string 103 Appends/updates the audit fields.ABORT Subroutine to cancel the current transaction and clear deferred write caches and releases locks.TEXT Repgen subroutine will get the description from REMARK field of a LOCAL.g.TASK another process 106 OCOMO Used for updating the comments in COMO record .TEXT.AMT This subroutine will receive two parameters and returns the amount to the calling program formated to the correct number of decimal places including trailling zeros. 101 WORKING.WRITE fields 105 Facilitates the automatic execution of a mainline process (subroutine or command) at the completion of EB.OVERRIDE Prompts for an override and stores the message in the main file record if the user replies 'Y'. 96 STORE.REC. 91 RG. which has not been created. 102 OFS. 92 RG.HIST.GET.
Copyright © 2024 DOKUMEN.SITE Inc.