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

Selection of Records using a CONDITION


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

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Wed Jul 02, 2008 1:46 pm
Reply with quote

Hi,

My requirement is to select records from an I/P file (FB, LRECL=1500) having a value X'0D'. I do not know where for what fields X'0D' comes. This value can come at any place in the records in the I/P file. I would like to get these records and put it in a output file.

Is there any way to get this done using DFSORT.

Please help.

Regards,
Chinni.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 02, 2008 2:05 pm
Reply with quote

Please do not use URGENT in the title of your post. This may be urgent for you, but almost certainly NOT urgent for anyone else on this forum.

Have you tried looking at the SS parameter for including / excluding records ?
Back to top
View user's profile Send private message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Wed Jul 02, 2008 2:22 pm
Reply with quote

Can you please let me know what exactly is SS parameter?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 02, 2008 2:34 pm
Reply with quote

http://www.ibmmainframes.com/viewtopic.php?t=1348
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: Wed Jul 02, 2008 10:17 pm
Reply with quote

You can use the following DFSORT statements:

Code:

   OPTION COPY
   INCLUDE COND=(1,1500,SS,EQ,X'0D')


For more information on DFSORT's SS function, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.2.6?DT=20060615173822

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:

Use [URL] BBCode for External Links
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 1
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top