Quantcast
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: SORT Block of records

Author: girishb2
Subject: SORT Block of records
Posted: Thu Sep 15, 2016 8:58 am (GMT 5.5)

Hi Friends.
I got a new requirement where I need to extract the block of records as per the country. The first two records are header and 3rd record contains country name and then detail records (these vary.. May be 6, may be 10, 12) then at the end I have trailer. This whole becomes a block of record for me. This file is FB with 400 LRECL. I need to recognize these block of records as per the country names and write it into separate files. I believe I need to use IFTHEN, GROUP, BEGIN, END Sort cards to do that but not sure how to. I have attached one block of record here. So I need to extract the whole block/bunch with same sequence for different countries. Please help on sort card.


Viewing all articles
Browse latest Browse all 8500

Trending Articles