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
 
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: 788
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 Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 2 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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