Day 1 - Session 3 - 4 - JQL Commands
Day 1 - Session 3 - 4 - JQL Commands
Day 1 - Session 3 - 4 - JQL Commands
Day 1 – Session 3 - 4
JQL Commands
Dates
21/02/2011 Tech Support Program
Venue
Microcred, Senagal
JQL
SELECT
• Used to get the count of the given file
• Conditional select can be given
– Eg: SELECT FBNK.CUSTOMER
EQ NE
NOT GT
GE LT
LIKE UNLIKE
SAID LE
IS.NULL IS.NOT.NULL
SSELECT
• Sort select is used to get the selected list in Sorted order
NSELECT
• NSELECT command is used to get the negated select from the
selected list
• Eg:
QSELECT
• Thiscommand is used to get the count of all multi value fields in
the record
• Eg:
SAMPLE SELECT
• Selection
on big files take long time. In this case sample select
can be made to get few records quickly
– LIST FBNK.CUSTOMER ONLY SAMPLE 10
LIST
• Command to list all the records in a file
• This will list all the records with fields and field values
• Eg. LIST FBNK.CUSTOMER
LIST FBNK.CUSTOMER
LIST… ONLY
• To list only the ids without fields
• Eg : LIST FBNK.CUSTOMER ONLY
NOPAGE
• Thisoption is used to list all the items without pressing Enter
key to go the next page
• LIST FBNK.CUSTOMER MNEMONIC NAME.1 NOPAGE
Soundex Selection
• LIST
FBNK.CUSTOMER NAME.1 WITH NAME.1 SAID
"SUNN“
– Will list only those records which sounds like “SUNN” and the
retrieved value will have ‘S’ as the starting letter
LIST.ITEM
• This command is used to list all the items in the record
• Eg:
– LIST.ITEM FBNK.CUSTOMER.ACCOUNT
– LIST.ITEM F.JOB.LIST.6
Listing JOB.LIST.6
SAVE.LIST
• It is possible to save the selected the items and then use it later
• Saved list name should be provided
• This list will get stored in &SAVEDLISTS& folder
GET.LIST
• This command is used to get the file from &SAVEDLISTS&
SORT
• By default it will sort in ascending order
• Ifyou want to sort the records in descending order we have to
explicitly mention in the sort statement
• Sort File BY FIELD Fields
BREAK-ON
• SORTFBNK.CUSTOMER BY SECTOR BREAK-ON SECTOR
NAME.1
– This command will insert a break each time the value in the Break-
On field changes
– (I.e) when the Name.1 changes there will be some spaces between
records
COUNT
• COUNT FBNK.ACCOUNT
• Count is used to count the total number of records in a file
SUPPRESS : ID-SUPP
• Suppress the record ID from being displayed as the first field in
any report
• SORT FBNK.ACCOUNT BY CUSTOMER BREAK-ON "'P'"
CUSTOMER @ID WORKING.BALANCE ID-SUPP
• By default the id of each record will be displayed even if the id
column is not given
• To suppress that id column we have to give Id-Supp
ESEARCH
• This command will search the specified string the specified file
• Eg:
– ESEARCH GLOBUS.BP
– STRING:RADAR
– STRING:
– 4 record(s) selected to SELECT list #0
ESEARCH FBNK.CUSTOMER
String:? DENORSKE
String: ?
SEARCH
• SEARCH is also used to get the search string from file
• This can also search in a specific record
• “*” is used to search in all files
DELETE.FILE
• This
command is used to delete the records and the entire file
completely
DELETE.FILE <File-Name>
DELETE
• This command is used to delete selected records
• “*” can be given to delete all the records
EDELETE
• Used to delete the records from the file
CLEAR.FILE
• Used to clear all the records in the file
LPTR
• Thiscommand is used to store the report in &HOLD& without
display
• This can be used with SETPTR command
– SETPTR 800,800,,,,6,BANNER CUS.LIST1
» Unit Number :0
» Page Width :800
» Page Depth :66
» Top Margin :3
» Bottom Margin :3
» Print mode : 6 - Output to HOLD file ( CUS.LIST1 )
DBL-SPC
• This command is used to give double space between the lines
• LIST
FBNK.CUSTOMER NAME.1 SECTOR NATIONALITY
DBL-SPC
“[ “
– This can be used for left ignore
– Eg : LIST FBNK.CUSTOMER = ‘[00289’ ONLY
“ ] ”
– This can be used for right ignore
– Eg : LIST FBNK.CUSTOMER = ‘10029]’ ONLY