|
View previous topic :: View next topic
|
| Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
 |
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|