View previous topic :: View next topic
|
Author |
Message |
gabriel.ryoga
New User
Joined: 07 Jun 2007 Posts: 31 Location: Spain
|
|
|
|
I need to know how can I copy some lines of one really big file to another.
The original file has millions of lines and I need to copy from one line to the last. (around 1000 lines)
I need something to copy from one line to another. |
|
Back to top |
|
|
SCARCEBOYZ
New User
Joined: 16 May 2005 Posts: 32 Location: Millenium Business Park, Mumbai
|
|
|
|
Whats a big deal in this.You can use IDCAMS Utility and you can give the number of records to copy or skip. |
|
Back to top |
|
|
gabriel.ryoga
New User
Joined: 07 Jun 2007 Posts: 31 Location: Spain
|
|
|
|
How can I make that??, can you post the job card?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Look at IDCAMS REPRO and all will be revealed. |
|
Back to top |
|
|
gabriel.ryoga
New User
Joined: 07 Jun 2007 Posts: 31 Location: Spain
|
|
|
|
Ok, thankyou very much,
I've found that I can skip a number of files and then copy just the number that I want.
REPRO -
SKIP(99) -
COUNT(500)
Thanks for the help! |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Any sort can do the same..... |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use a DFSORT job like the following:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY,SKIPREC=99,STOPAFT=500
|
SORTOUT would have lines 100 to 599. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
You can use file-aid as well, command is TSO MYCOPY. Use "T" in 'Selection criteria usage' (Temporary) and then follow the instruction on screen. |
|
Back to top |
|
|
|