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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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