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
 

 

Concatenating the files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Concatenating the files.
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: 785
Location: Chennai, India

PostPosted: Tue May 04, 2010 7:41 pm    Post subject:
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 Moderator


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

PostPosted: Tue May 04, 2010 11:17 pm    Post subject:
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:

http://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    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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm
No new posts Icetool or Joinkeys example to compar... ishant chauhan DFSORT/ICETOOL 21 Sat Aug 20, 2016 2:40 am


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