Copy 1 to 500 records from one file to another file



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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: 21
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

 

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: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

thank Q

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

hi thank Q for giving the reply
kiran
 
Posts: 21
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: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

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

Postby lokeshheda » Sat Oct 13, 2007 10:59 pm

we can use icetool utility..
in this we have to specify...
field=copy, countrec=500, stopaft=501 in sysin dd *
lokeshheda
 
Posts: 5
Joined: Sat Oct 06, 2007 9:53 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby CICS Guy » Sun Oct 14, 2007 12:02 am

lokeshheda wrote:we can use icetool utility..
in this we have to specify...
field=copy, countrec=500, stopaft=501 in sysin dd *
Already answered, do you have anything helpful to add?
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby Frank Yaeger » Mon Oct 15, 2007 8:44 pm

lokeshheda wrote:
we can use icetool utility..
in this we have to specify...
field=copy, countrec=500, stopaft=501 in sysin dd *


lokeshheda,

The statements you show are NOT valid DFSORT or ICETOOL statements. This is the second post you've made that makes no sense. Please stop posting this nonsense.
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: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post