There are might be instances when you need to convert the internal storage of a numeric filed , DFSORT allows you to accomplish this outside your program , lets look at the various options available. Converting Binary to Displayable Zoned Decimal If you want a binary value to made readable , you can do so […]
SORT
Reformatting Records Using OUTREC – Part 2
We will explore few more common uses of OUTREC with examples below 1 . Inserting Zeros, Spaces and Character strings to your output You can insert blanks before, between, or after fields. You can use X or 1X to specify a single blank. You can use nX to specify n blanks.To insert 10 blanks, write 10X […]
Reformatting Records Using OUTREC – Part 1
Though OUTREC is one of the most frequently used features of DFSORT, many still find a SORT cards with OUTREC FIELDS=(21:106,4,35:1,75) confusing . We will try to explore the many uses of OUTREC in this article with some examples . OUTREC gives you the flexibility to reformat your output file in multiple ways . […]
How to create test files for SORT
Looking to learn SORT ? , you are definitely going to need some input files to test your SORT card , the good news is that you need to have to create them manually . IBM provides you with a JCL which would create 3 test file with different kinds of data types that you […]