I think Peter Farley hit the nail on the head, and the reason that the
MEMBERS-W/LNS is 0 if PDS2 is first, but 1 if PDS1 is first is because both
PDS1 and PDS2 have a member PGM1.  In PDS1, it has the word COUNTRY, but in
PDS2 it doesn't.  The number of members SCANNED is the same in both runs,
1562, its just that in the first run, there was 1 member with lines + 1561
w/o = 1562.  In the second run, 0 with lines + 1562 w/o = 1562.
Wayne Driscoll
Product Developer
Western Metal Supply
NOTE: All opinions are strictly my own.
  

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Tom Savor
Sent: Thursday, June 02, 2005 1:23 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: ISRSUPC - Odd Behavior

Cross posted with ISPF group:

Seeing some odd behavior with ISRSUPC (SuperC) scan in Batch:

//SEARCH  EXEC PGM=ISRSUPC,
//            PARM=(SRCHCMP,
//            'ANYC')
//NEWDD  DD DSN=PDS1,DISP=SHR
//       DD DSN=PDS2,DISP=SHR
//OUTDD  DD SYSOUT=(*)
//SYSIN  DD *
SRCHFOR  'COUNTRY'

Results in:
PGM1    CONCAT#(01)      ----------- STRING(S) FOUND -------------------
     5  127815     MOVE MST-COUNTRY TO WK-COUNTRY.
     7  153925     MOVE MST-COUNTRY-ALPHA            TO W-COUNTRY-TEST.

LINES-FOUND  LINES-PROC  MEMBERS-W/LNS  MEMBERS-WO/LNS  COMPARE-COLS
LONGEST-LI
        2       304997            1           1561           1:80
80

THE FOLLOWING "SRH" FILE CONCATENATED DATA SETS WERE SPECIFIED:
 (01) PDS1
 (02) PDS2

Now PDS1 has 435 members.
PDS2 has 1272 members for a total of 1707.
But only 1561 members were searched !!  Huh ??

Both PDS's are defined as LRECL=80, BLKSIZE=18400, RECFM=FB and they are
both PDS's not PDSE's.

Now if I flip the concatenation of PDS1 and PDS2, the same number of members
is searched, but the search results happens to be "none found".

LINES-FOUND  LINES-PROC  MEMBERS-W/LNS  MEMBERS-WO/LNS  COMPARE-COLS
LONGEST-LI
        0       339043            0           1562           1:80
80
PROCESS OPTIONS USED: ANYC
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
   SRCHFOR  'COUNTRY'
THE FOLLOWING "SRH" FILE CONCATENATED DATA SETS WERE SPECIFIED:
 (01) PDS2
 (02) PDS1
Why does scan stop at 1561 or 1562 members when concatenated total is 1707
??

Thanks,

Tom Savor
Certegy Card Services
11720 Amber Park Drive, Suite 500
Alpharetta, GA  30004

Phone: 678-867-8431
cell:  404-660-6898
E-Mail: [EMAIL PROTECTED]
/\/\_00_/\/\







----------------------------------------------------------------------------
--
This message contains information from Certegy, Inc which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have received
this transmission in error, please notify by e:mail [EMAIL PROTECTED]
============================================================================
==

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the
archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to