Selective copy

IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER
mainframe1
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Skillset: cobol, dn2, jcl, adabas, roscoe
Referer: FRIEND

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

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

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:

Code: Select all

   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

mainframe1
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Skillset: cobol, dn2, jcl, adabas, roscoe
Referer: FRIEND

Re: to copy using iceman

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

tx very much..


  • Similar Topics
    Replies
    Views
    Last post