Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Splitting a file on the basis of a field in the same file
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: 1439
Location: Bangalore,India

PostPosted: Tue Apr 10, 2007 11:26 am    Post subject:
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    Post subject: Re: Splitting a file on the basis of a field in the same fil
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: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 10, 2007 12:32 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Apr 10, 2007 12:32 pm    Post subject:
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    Post subject: Re: Splitting a file on the basis of a field in the same fil
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us