MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying Selective Column

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Mainframe_Beg
Beginner


Joined: 30 Nov 2004
Posts: 2
Topics: 1

PostPosted: Tue Nov 30, 2004 12:37 pm    Post subject: Copying Selective Column Reply with quote

Hi,

I need to select only a few columns and copy them to a different file.
e.g in a File (FB, Rec Length 358), I need to copy following fields only to a different file:

Column 280 ln X(1)
Column 289 ln X(3)
Column 315 ln X(4)

Which utility should I use to achive this ?
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Nov 30, 2004 1:33 pm    Post subject: Reply with quote

You can use the following DFSORT job to do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  OUTREC FIELDS=(280,1,289,3,315,4)
/*


If you're not familiar with the DFSORT and DFSORT's ICETOOL, I'd suggest going through "DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use the features of DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online at:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG00/CCONTENTS
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mainframe_Beg
Beginner


Joined: 30 Nov 2004
Posts: 2
Topics: 1

PostPosted: Tue Nov 30, 2004 3:13 pm    Post subject: Thanks a lot !! Reply with quote

Thanks a lot !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group