Partial Dataset Name Match

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
DoubtfulBadger
Member
Posts: 2
Joined: Mon Dec 09, 2013 9:12 pm

Partial Dataset Name Match

Post by DoubtfulBadger » Mon Dec 09, 2013 9:20 pm

Hi All,

I'm looking to enhance (read replace) a current function and I want to try to use DFSORT.

The first part of the process matches partial dataset names against full dataset names.

For example:
File A contains:
MY.DATASET.ONE
MY.DATASET.TWO
MY.OTHER.DATASET

If file B contains:
MY.DATASET.ONE
Then only one dataset name is matched

If file B contains:
MY.DATA
Then two datasets are matched

If file B contains:
MY
Then three datasets are matched

File B can contain multiple partial names and they are not necessarily in ascending order.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Dec 09, 2013 9:58 pm

IF you had a dataset (not file) MYALT.DATASET.ONE in dataset A and dataset B contained MY would you expect the MYALT dataset to be matched? And can one assume for example purposes that both datasets are LRECL=80 and RECFM=FB?
Will dataset B contain only one record to used as the selection template or multiple records?
Regards
Nic

DoubtfulBadger
Member
Posts: 2
Joined: Mon Dec 09, 2013 9:12 pm

Post by DoubtfulBadger » Tue Dec 10, 2013 3:17 pm

Hi Nic,

Thanks for the reply.
  • 1. Yes, as stated in my original post, file B can cotain multiple entries.
    2. A request for MY would list MYALT.DATASET.ONE whereas a request for MY. (with a period) wouldn't.
    3. File B will most likely be SYSIN data (LRECL=80) but file A is VB with the dataset name in a fixed position.

Post Reply

FREE TUTORIALS

Tutorials
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.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others