by manjeera.bonakurthi » Mon Feb 22, 2010 1:58 pm
This is the info of two i/p files.. Data Set Information
Command ===>
Data Set Name . . . . : WXX093.MANJEERA.TEST1
General Data Current Allocation
Management class . . : TPS035 Allocated cylinders : 1
Storage class . . . : DEFAULT Allocated extents . : 1
Volume serial . . . : MIZABB
Device type . . . . : 3390
Data class . . . . . : NONSTD Current Utilization
Organization . . . : PS Used cylinders . . : 1
Record format . . . : VB Used extents . . . : 1
Record length . . . : 80
Block size . . . . : 800
1st extent cylinders: 1
Secondary cylinders : 3
Data set name type : SMS Compressible : NO
Creation date . . . : 2010/02/18 Referenced date . . : 2010/02/21
Expiration date . . : ***None***
Data Set Name . . . . : WXX093.MANJEERA.TEST2
General Data Current Allocation
Management class . . : TPS035 Allocated cylinders : 1
Storage class . . . : DEFAULT Allocated extents . : 1
Volume serial . . . : MIZAA1
Device type . . . . : 3390
Data class . . . . . : NONSTD Current Utilization
Organization . . . : PS Used cylinders . . : 1
Record format . . . : VB Used extents . . . : 1
Record length . . . : 80
Block size . . . . : 800
1st extent cylinders: 1
Secondary cylinders : 3
Data set name type : SMS Compressible : NO
Creation date . . . : 2010/02/18 Referenced date . . : 2010/02/21
Expiration date . . : ***None***
These are the contents of two i/p files
WXX093.MANJEERA.TEST1
000001 1 1234 12/3/10 12:20:23 5000
000002 2 1234 04/3/10 12:20:23 5000
000003 3 2345 11/4/10 11:34:28 10000
000004 4 2345 05/4/10 04:45:28 10000
WXX093.MANJEERA.TEST2
11 1234 12/3/10 12:20:23 5000
22 1234 05/3/10 01:45:23 5000
33 2345 05/4/10 04:45:28 10000
44 4567 01/4/10 11:34:28 10000
This is the jcl i have submitted....
//PS010 EXEC PGM=SORT
//*
//* INPUT FILE
//*
//SORTJNF1 DD DSN=WXX093.MANJEERA.TEST1,
// DISP=SHR
//SORTJNF2 DD DSN=WXX093.MANJEERA.TEST2,
// DISP=SHR
//*
//SORTOUT DD DSN=WXX093.MANJEERA.OUT,
// DISP=(NEW,CATLG,CATLG)
//*
//*
//SYSIN DD *
JOINKEYS FILES=F1,FIELDS=(9,4,A,16,8,A,25,8,A)
JOINKEYS FILES=F2,FIELDS=(9,4,A,16,8,A,25,8,A)
REFORMAT FIELDS=(F1:1,2,F2:1,2)
SORT FIELDS=COPY
/*
//SYSOUT DD SYSOUT=*
//*
//SYSPRINT DD SYSOUT=*
//*