Searching a PDS using SORT

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
User avatar
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Searching a PDS using SORT

Post by arrbee » Tue Sep 23, 2008 5:35 pm


I know that we can use "SS" feature of SORT to search a PS file. How to use this function to search a PDS? I tried to apply it on a PDS but could succeed only if member names are mentioned.........not useful.....huh.... :(

Is it possible to mention Not Equal To condition along with SS on a PDS? If not, any alternatives please :roll: :?

Please help me out.

Arr Bee
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

User avatar
Frank Yaeger
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA

Post by Frank Yaeger » Tue Sep 23, 2008 7:47 pm

DFSORT cannot search an entire PDS just by giving the PDS name - it can only operate on one member of a PDS at a time via dsn=pds(member).

You can use NE with SS, but only with one member of a PDS at a time.
Frank Yaeger - DFSORT Development Team (IBM) -
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others