Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: SORT VSAM file with each field one by one into output file

$
0
0
Author: maxsubrat
Subject: SORT VSAM file with each field one by one into output file
Posted: Tue Mar 14, 2017 1:07 pm (GMT 5.5)

Hi,

I have a input vsam file and The record length are 3616

01 PA-RECORD.
05 LT-TEXT-KEY PIC X(04).
05 LT-FORM-1 PIC X(06).
05 LT-FORM-2 PIC X(06).
05 LT-TEXT-LINE PIC X(90) OCCURS 40.


My output file will be:

I need to omit LT-FORM-1 and LT-FORM-2, only want to keep LT-TEXT-KEY and LT-TEXT-LINE.

For LT-TEXT-KEY, I just wnat to keep only for SS01 , HH01 & ZZ01.

the output wil be be as below top to bottom:

SS01
line1
line2
-
-
line40
************
HH01
line1
line2
-
-
line40
************
ZZ01
line1
line2
-
-
line40
************

I have tried to get it in a line for each key, not sure how to put vertically as above.

Thanks
Maxs


Viewing all articles
Browse latest Browse all 8500

Trending Articles