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

Concatenating the files.


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

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Tue May 04, 2010 7:12 pm
Reply with quote

Hi,
I need to concatenate the file on particular condition.

All the files are in VB format.
I need to include only those records satifying the following condition:

The first field is defined as COMP-3 ( PIC S9(3) COMP-3. )
I need to select only those records with variable value = 88.
As the file is in VB format from which location and what condition should i include to select only those records.

Also i need to sort the file for a 2nd variable in ascending order defined as:
10 f777-uuu PIC S9(5) COMP-3 VALUE +0


Following is the file defination:

05 U88-ID PIC S9(3) COMP-3.
05 Mul-dATA.
10 f777-uuu PIC S9(5) COMP-3 VALUE +0.
10 f77a-aaa PIC S9(6) COMP-3 VALUE +0.
05 Mul-filler PIC X(648).

Please provide ur inputs regarding the same
_________________
Krunal
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue May 04, 2010 7:41 pm
Reply with quote

Try these DFSORT statements:

Code:
//SYSIN DD *                                         
  SORT FIELDS=(7,3,PD,A)                             
  INCLUDE COND=(5,2,PD,EQ,88)                         
/*


Please let me know if this doesn't work.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue May 04, 2010 11:17 pm
Reply with quote

Guys - I've deleted all of the metadiscussion on "fish", scolding, insults, ways people learn, etc. We've discussed all of that numerous times on this board, but if you want to go on discussing it, please do it in some other, more general, Forum. This one is for DFSORT/ICETOOL questions/answers. I really don't want to spend time plowing through all of that just to answer the actual question.

If you don't want to answer questions - don't. If you do want to answer questions - do. The rest is noise and quite tedious at this point (similar to the constant discussions of what JCL is and isn't).

Krunal,

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top