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 Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am

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