Purusothaman Ramanujam

Purusothaman Ramanujam

Personal Blog

23 Jan 2012
23 Jan 2012

Selecting first few rows in DB2

DB2’s method of performing a Top-N query is the FETCH FIRST clause. You can append these variations to a regular SELECT query: FETCH FIRST …

23 Jan 2012

INSPECT in COBOL

The INSPECT verb has two options, TALLYING and REPLACING. You can do one or the other or both. If both are done, the TALLYING IS DONE BEFORE …

23 Jan 2012

COBOL Numeric Data Types-COMP

The following common COBOL data types are discussed below: Binary Computational (comp) Comp-1 Comp-2 Comp-3 Packed Decimal **BINARY ** …

23 Jan 2012

ISPF Special Searching

A picture string in a FIND, CHANGE, or EXCLUDE command allows you to search for a particular kind of character without regard for the …

23 Jan 2012

TIME=NOLIMIT and TIME=MAXIMUM

We can specify the max limit of TIME parameter as TIME=NOLIMIT TIME=MAXIMUM Now which specification gives maximum time for a JOB? …

23 Jan 2012
23 Jan 2012

DB2 Index with Expressions

Prior to DB2 9, the create index statement only allowed you to use the column name from the table the index is being built on. The same …

23 Jan 2012

Run a Program using Referback

It is possible to execute a program from any library using the referback feature. STEP1 EXEC PGM=IEFBR14 //PROGRAM DD …

20 Jan 2012

Like the DB2 LIKE

The LIKE phrase defines a mask for comparing characters: WHERE COL_VAL [NOT] LIKE mask A mask may be a host variable or a literal enclosed …