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

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

book

Article ID: 48425

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Description:

 

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

 

 

Environment

Librarian V44:

Resolution

 

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) 
/*