You are on page 1of 2

1.How do you optimize SQR.

Ans:a) SQR can be optimized by breaking big SQL statements into simple SQL
statements
b) Using Load Lookup command
c)Using array or Flat File instead of Database Tables
d) Examining cursor status by using –S flag while executing SQR.

2.Use of ON-Break in SQR.


Ans: It is used to group set of records for each level & break at each level.

3.Which SQC tells you that some Job is completed.


Ans: EOJ.SQC

4.Which SQC is responsible for system memory allocations.


Ans:AllMaxes.max

5.Difference between SQR/Crystal/nVision.


SQR Crystal nVision
1.It does not provide GUI 1.It provides GUI 1.It provides GUI interface for
interface to create reports interface for creating creating reports.
reports
2.Uploading 2.Cannot be used for 2.Cannot be used for writing
/Downloading data from writing Interfaces Interfaces.
flat file to PS can be done.

3.SQR language for 3.Complex programs 3.Cannot hold intermediate


reporting is a cannot be written, at data.Only prints reports based on
programming language in the most few IF Else PSQueries.
which you can create your statements can be used
own SQC’s for reusability based on data fetched.
& also can hold
intermediate date for
Processing.

4.SQR report output can 4.Crystal Report output 4.It provides output only for Excel
be on text file, word can be of any type Spreadsheets.
document etc

5.What is the difference between EDIT and FORMAT in SQR.


Ans:Edit is used for formatting while printing &Format is used while Input specially for
date.
6.Purpose of DECLARE-LAYOUT?
Ans:It is used for defining Page Layout & includes Paper Size,Margins, in Begin-Setup.
Such as Left-Margin=1,Top-Margin=1.
7.What is the difference between Ask & Input commands
Ans:Ask is the compile time substitute variable which is defined in Begin-Setup.It is used
to take an input at compile time.For example to accept a printer from user at compile
time. Input command is used to accept user input at runtime.

8.What are the different command line flags and why do we use them.
Ans. –A: causes reporting output to be appended to an existing file of the same name.
-C: cancel dialog box appears so that user can terminate the program
-DEBUG: Used in conjunction with#debug command to display additional
information when troubleshooting SQR programs.
-E:Specifies than an ereror file be created and allows you to specify the filename.
-F:Specifies a file ro directory where the *.lis file should be created, instead of in the
default location.
-O:Filename fo the log file
-RS: creates a runtime version of your SQR.Creates a file with the *.sqt extension.
-PRINTER: Causes Printer type to be specified.
-S:Displays the status of all cursors at the end of the run.This is used for troubleshooting
SQR programs.
9.Difference between Begin-Select &Begin-SQL?
Ans: BEGIN-SELECT has only one SQL statement. BEGIN-SQL can have any number
of DMLstatements &it can also have PL-SQL statements for oracle& each statement
should end with double semi colon(;;)
10.What control statements are used in SQR
Ans: While,if,evaluate
11.What type of joins can be used in SQR
Ans:Outer join,equi join,Self join etc.
12.How do you pass parameters from a customized page to sqr.
Ans:Through run control record and Stdapi.Sqc should be included.
13.How do you reference Global variable in a local procedure in SQR.
Ans: Global variable can be accesed with #_Variable Name from Local Procedure.
14.What are the differences between Sqr and Application Engine.
Ans: Sqr is used as a reporting tool and Application Engine has IMPORT and EXPORT
features to EXTRACT data but it is not similar to SQR.
AE has restart logic which is not there in SQR
AE is Effective Dated.
15.What is PSsqr.ini used for
Ans: The PSSQR.INI file is the initialization file for SQR for PeopleSoft. This file
contains settings and parameters that SQR uses during the compile and execution phases.

You might also like