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
kiran
Posts: 17
Joined: Mon Sep 03, 2007 10:45 pm
Skillset: vs_cobolII, jcl, db2, vsam, cics
Referer: from google search

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...

User avatar
Frank Yaeger
Global moderator
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Skillset: DFSORT, ICETOOL, ICEGENER
Referer: Search
Contact:

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.

Code: Select all

//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

kiran
Posts: 17
Joined: Mon Sep 03, 2007 10:45 pm
Skillset: vs_cobolII, jcl, db2, vsam, cics
Referer: from google search

thank Q

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

hi thank Q for giving the reply

User avatar
Frank Yaeger
Global moderator
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Skillset: DFSORT, ICETOOL, ICEGENER
Referer: Search
Contact:

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


  • Similar Topics
    Replies
    Views
    Last post