Vous êtes sur la page 1sur 6

PERFORMANCE TUNING

 load-lookup, lookup
 using arrays
 cross tabular reports
 multiple reports
 running on server
 using sqt files
 bnn
 proper programming logic
 sql tuning

SQC

 This consists of code that can be reused in multiple SQR programs.


 SQC alone can’t be executed,in order to execute SQC, we must include it in other SQR
programs.
 SQC are basically created for easy maintenance.
 Types of SQC’s

 Environment SQC

These are used to make the SQR program portable to any OS or database.

Eg: setenv.SQC

 Setup section SQC

These SQC consist of reusable program section coding.

 Header SQC

These consist of reusable header section coding.

Footer SQC

The SQC consist of common reusable footing section coding.

 API aware SQC

These SQC are used to integrate SQR with PEOPLESOFT

 ASK SQC
These consist of reusable ask input commands

 Run control SQC

These consist of reusable code to pass input parameter in n-tier.

 Functional SQC

These are used for formatting data on output page

Eg : datetime.SQC, string.SQC

 Module specific SQC

These SQC’s consist of reusable code, specific to the model.

Command line flags:-

-Bnn : Bulk processing

Ziv : compile and execute

-e : error file

-o : log file

-c : cancel button

-f : output path

-rs : compile

-rt : execute

-tnn : no.of output pages

-s : sql tracing

!** on-break
BEGIN-PROGRAM

DO TAB

END-PROGRAM

BEGIN-PROCEDURE TAB

BEGIN-SELECT

COUNTRY (+!,1) ON-BREAK PRINT =CHANGE/TOP-PAGE

LEVEL =1 AFTER CNTRY=END SAVE=$OLD_CNTRY

EMP (,6) ON-BREAK PRINT=CHANGE/TOP-PAGE

LEVEL=2

EMPID( ,35)

NAME (,48)

FROM PS_EMPLOYEES

WHERE COUNTRY <> ‘ ‘

AND CITY <> ‘ ‘

END-SELECT

END-PROCEDURE

BEGIN-PROCEDURE CNTRY_END

LET $FINAL_STATEMENT = ‘PRINT END OF’||$OLD_COUNTRY||’COUNTRY EMPLOYEES’

PRINT $FINAL_STATEMENT (+1,1) BOLD

END-PROCEDURE
!** LETTERS AND DOCUMENTS

BEGIN-PROGRAM

DO BONUSLETTER

END-PROGRAM

BEGIN-PROCEDURE BONUSLETTER

BEGIN-SELECT

NAME

ADDR1

ADDR2

CITY

COUNTRY

DO LETTER

FROM PS_EMPLOYEES

END-SELECT

END-PROCEDURE

BEGIN-PROCEDURE

BEGIN-PROCEDURE MAIN

BEGIN-DOCUMENT MAIN

BEGIN-DOCUMENT (1,1)

&NAME

&ADDR1

&ADDR2

@CITY_STATE_COUNTRY
.B

.B

DEAR &NAME

.B

THIS IS TO INFORM U THAT, ON OCCASION OF INDEPENDENCE DAY, &NAME HAS


RECIEVD BONUS OF 500RS/-

.B

REGARDS,

XYZ

END-DOCUMENT

END-DOCUMENT

POSITION () CITY_STATE_COUNTRY

PRINT &CITY()

PRINT’;’()

PRINT &STATE()

PRINT’;’()

PRINT &COUNTRY()

NEW-PAGE

END-PROCEDURE
PEOPLETOOL TABLES FOR RECORDS
PSRECDEFN-> RECORD DEFINITION TABLES

PSREDFIELD -> RECORD FIELD TABLE

PSAUDIT-> FIELD LEVEL AUDIT RECORD.

PAGES/PANEL
 THIS IS COLLECTION OF RECORDS.
 This is user interface, used to interact with data from database
 They are of 3 types
i. Standard
ii. Subpage
iii. Secondary

i. Standard page:
- This is the default page type.
- This is the only page, we can maintain security.
- This can be inserted into a component
- These are normal pages in PeopleSoft, which are used to interact with data from
database.

ii. Sub-page:
- These cannot be inserted into component directly.
- We cannot maintain security
- Sub-record field can only be placed on this page type.
- Reusability and easy maintenance.
iii. Secondary page:
- These cannot be inserted into component directly.
- We cannot maintain security to this page type.
- This is used to place rarely used fields or non-important fields to design an
effective user interface.

Vous aimerez peut-être aussi