IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Splitting a file on the basis of a field in the same file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Apr 10, 2007 11:09 am
Reply with quote

Hi all,

Please help me in this issue.

Consider the file A. The fields available in this file is a,b,c and d.
The d field is character field of length 16.
I need to split the file A into seperate files on the basis of the field d.

Please help me to solve this issue thru Jcl ASAP.

Please provide the syntax also.

Thanks again in advance. icon_smile.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Apr 10, 2007 11:26 am
Reply with quote

Prasanth,

Using OUTFIL FNAMES option of DFSORT, your requirement can be acheived. For that you need to know the values before hand. Search DFSORT forum for more info.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Apr 10, 2007 12:26 pm
Reply with quote

Thanks Maurali,

can you give me the syntax of the OUTFIL FNAMES ????


Thanks again..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 10, 2007 12:32 pm
Reply with quote

This link is at the start of the topics in this forum.

http://ibmmainframes.com/viewtopic.php?t=1348
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Apr 10, 2007 12:32 pm
Reply with quote

Hi Prashanth,

Please find the below code

Code:

  OPTION COPY               
  OUTFIL FNAMES=OUT1,INCLUDE=(5,1,CH,EQ,C'A')         
  OUTFIL FNAMES=OUT2,INCLUDE=(5,1,CH,EQ,C'B')
  ...
Back to top
View user's profile Send private message
vkphani

New User


Joined: 29 Oct 2003
Posts: 29

PostPosted: Tue Apr 10, 2007 2:08 pm
Reply with quote

prasanth_urs wrote:

can you give me the syntax of the OUTFIL FNAMES ????



Type QW OUTFIL in the command line of your mainframe and hit enter, then you will get the syntax.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top