Page 1 of 1

Selective copy

PostPosted: Fri Oct 10, 2008 10:17 am
by mainframe1
I want to read from the 11th charecter of input file

the input file contains &FILENAME=AE12334P.123, i want to read from AE

Re: to copy using iceman

PostPosted: Fri Oct 10, 2008 8:28 pm
by Frank Yaeger
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

Re: to copy using iceman

PostPosted: Sat Oct 11, 2008 10:32 am
by mainframe1
tx very much..