Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Sat May 08, 2004 10:26 am Post subject: |
|
|
Here's one way to do this with DFSORT's ICETOOL:
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... VSAM file
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//T2 DD DSN=&&T2,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//CON DD DSN=*.T1,VOL=REF=*.T1,DISP=(OLD,PASS)
// DD DSN=*.T2,VOL=REF=*.T2,DISP=(OLD,PASS)
//OUT DD DSN=... VSAM file
//TOOLIN DD *
* IN->T1: Create a header record with 41 zeros in seq file T1
* IN->T2: Copy the VSAM records to seq file T2
COPY FROM(IN) USING(CTL1)
* T1/T2 -> OUT: Copy the header record and original records
* from the seq files to the VSAM file
COPY FROM(CON) TO(OUT)
/*
//CTL1CNTL DD *
OUTFIL FNAMES=T1,ENDREC=1,OUTREC=(41Z)
OUTFIL FNAMES=T2
/*
|
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|