What is the difference between -EXTRACT and -SEL statements?

Document ID : KB000048425
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:


  • EXTRACT needs only READ authority to the Master file and does not update the LAST ACCESS DATE of the member in the CA Librarian Master file.
  • SEL needs UPDATE authority to the Master file and does update the LAST ACCESS DATE of the member in the CA Librarian Master file.

Solution:

The Utility -EXTRACT control statement is a read-only facility that uses File Access Interface Routines (FAIR) to copy the data records of the member level to the jobstream file. -EXTRACT copies the data records to the jobstream file without opening the Master file for update.

The -SEL module control statement selects a module from the Master file for processing.

The LAST ACCESS DATE is listed in the Management Index Listing :


//STEP1        EXEC   PGM=AFOLIBR
//MASTER       DD     DSN=YOUR.LIBRARIAN.MASTFILE,DISP=SHR
//OSJOB        DD     DUMMY
//LIST         DD     SYSOUT=*
//SYSPRINT     DD     SYSOUT=*
//SYSIN        DD     *
-OPT INDEX(M) 
/*