Selective copy



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

Selective copy

Postby mainframe1 » Fri Oct 10, 2008 10:17 am

I want to read from the 11th charecter of input file

the input file contains &FILENAME=AE12334P.123, i want to read from AE
mainframe1
 
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: to copy using iceman

Postby Frank Yaeger » Fri Oct 10, 2008 8:28 pm

If you want to keep only specific columns from each record, you can do that with DFSORT's INREC, OUTREC or OUTFIL statement. For example, if your input file has RECFM=FB and LRECL=80, and you want to keep only columns 11-80, you can use these DFSORT statements:

   OPTION COPY
   INREC BUILD=(11,70)


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/servers/storage/supp ... tmpub.html
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

Re: to copy using iceman

Postby mainframe1 » Sat Oct 11, 2008 10:32 am

tx very much..
mainframe1
 
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Has thanked: 0 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post