View previous topic :: View next topic
|
Author |
Message |
MALLIKARJUN.KUMMITHA Warnings : 1 New User
Joined: 25 Oct 2007 Posts: 7 Location: india
|
|
|
|
Copy using sort utility:
1) // job.---------
//step 1 exec pgm=sort
//sortin dd dsn=a.b.file1, disp=shir
//sortout dd dsn=a.b.file2, disp=shir
//sortwk1 dd unit=disk
//sortwk2 dd unit=disk
//sysout dd sysout=*
//sysprint dd sysout=*
//Sysin dd*
sort fields=copy
/*
or
2 way
//job cards----
/step 1 exec pgm=iebgener
//sortin dd dsn=a.b.file1, disp=shir
//sortout dd dsn=a.b.file2, disp=shir
//sortwk1 dd unit=disk
//sortwk2 dd unit=disk
//sysout dd sysout=*
//sysprint dd sysout=*
//Sysin dd*
/* |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
MALLIKARJUN,
Your JCL is a mess (lots of unnecessary or incorrect dd statements and syntax errors). It should be:
Code: |
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=a.b.file1,DISP=SHR
//SORTOUT DD DSN=a.b.file2,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
/*
|
and
Code: |
//STEP2 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=a.b.file1,DISP=SHR
//SYSUT2 DD DSN=a.b.file2,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
|