Copy 1 to 500 records from one file to another file



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Copy 1 to 500 records from one file to another file

Postby kiran » Fri Oct 05, 2007 7:42 pm

how to copy 1 to 500 records from one file to another file by using jcl?

can anybody give the help ple...
kiran
 
Posts: 17
Joined: Mon Sep 03, 2007 10:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copy 1 to 500 records from one file to another file

Postby Frank Yaeger » Fri Oct 05, 2007 10:04 pm

Here's a DFSORT job that will do what you asked for. SORTOUT must specify a MOD data set.

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  file1
//SORTOUT DD DISP=MOD,DSN=...  file2
//SYSIN    DD    *
  OPTION COPY,STOPAFT=500
/*
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

thank Q

Postby kiran » Sat Oct 06, 2007 2:34 pm

hi thank Q for giving the reply
kiran
 
Posts: 17
Joined: Mon Sep 03, 2007 10:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copy 1 to 500 records from one file to another file

Postby Frank Yaeger » Sat Oct 06, 2007 11:47 pm

Glad I could help.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post