geeta.mishra
New User
Joined: 27 Dec 2005 Posts: 21 Location: Bangalore
|
|
|
|
Hi,
I am using the following input file which has to be sorted on BRANCH-NO,ACCOUNT-NO,RECORD-ID.This is a variable block file of length 300.
Structure of the file:
:TAG:-MIGR-MAST-REC
3 :TAG:-RECORD X(300)
3 :TAG:-HEADER-RECORD REDEFINES :TAG:-RECORD
3 :TAG:-HEADER-RECORD GROUP
5 :TAG:-HR-BRANCH-NO 9(6)
5 :TAG:-C1 X
5 :TAG:-HR-ACCOUNT-NO 9(8)
5 :TAG:-C2 X
5 :TAG:-HR-RECORD-ID 99
5 :TAG:-C3 X
(for clarity I have mentioned only the first few records of the file)
I am using the following sort card to sort the records in the above file:
(1,6,ZD,A,8,8,ZD,A,17,2,ZD,A)
My input file has:
Branch-no C1 account-no C2 Record-id
100002 , 10000003 , 02
100003 , 10000003 , 02
100003 , 10000001 , 01
100003 , 10000003 , 01
100003 , 10000003 , 03
100002 , 10000002 , 01
100001 , 10000007 , 03
100001 , 10000005 , 01
and I am getting the output as:
Branch-no C1 account-no C2 Record-id
100001 ,10000005 , 01,
100001 ,10000007 , 03,
100002 ,10000002 , 01,
100002 ,10000003 , 02,
100003 ,10000001 , 01,
100003 ,10000003 , 02,
100003 ,10000003 , 01,
100003 ,10000003 , 03,
JCl is executing with MAXXCC=0 but output is not getting sorted.
This might be a problem with the Sort card which I am using.
Could you please help me out in this as early as possible.
Thanks,
Geeta |
|