Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8657
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: 1190
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us