Tags » Sort

SORT CARD – TO IDENTIFY AND REPLACE SPECIAL CHARACTERS (CHARS) IN A FILE

Requirement is that the input file has few records with special characters and few without special characters (just alphanumeric chars). Records without special chars should be written to a file and records with special chars should be written to a different file. 199 more words

Mainframe

SORT – ICETOOL – FAIL THE JOB IF FILE IS EMPTY

ICETOOL has an option NOTEMPTY which return RC 12 if the provided input file is empty.

//STEP01 EXEC PGM=ICETOOL
//SYSPRINT DD SYSOUT=*
//INFILE DD DISP=SHR,DSN=YOUR.INPUT.FILE… 15 more words

Mainframe

SORT – Reformat Packed Decimal (PD)

Sometimes there is a scenario where you have a Packed Decimal (COMP 3) PD field with definition of S9(8)V99 COMP-3 which needs to be reformatted as S9(10)V99 COMP-3. 69 more words

Mainframe

Copy and Paste can do so much...

Answer to the 5 little Tips (tests) – Part 5/5

The task: To sort the following dates in descending order.  Sound silly but…

The first thing you would probably do is to go to Data tab and then click the Sort Z to A icon? 458 more words

Excel Tips

Choosing Random Files

This week, something short. To run tests, I needed a selection of WAV files. Fortunately for me, I’ve got literally thousands of FLAC files lying around on my computer—yes, I listen to music when I code. 323 more words

Hacks

Show and feel the love on V-Day

(Source: www.straitstimes.com)

When it comes to holidays, everyone has his favourites.

For the traditionalists, it is hard to beat the history and time- honoured rituals of classic religious holidays such as Easter, Chinese New Year, Hari Raya and Diwali. 996 more words

Current Affairs

How to sort array on given key in php?

Sometime we require array in specific order that time we need to sort array in specific order in ascending or descending order as par requirement view. 72 more words

Php