RECALL Examples
The CLI can be used to recall data sets using the RECALL command. RECALL is allowed for cataloged data sets only, therefore the command accepts a specific data set name as input. For example, an SMS-managed data set is recalled with its original SMS attributes as input to the ACS routines. For a non-SMS managed data set, the recall is performed on the original volume that accommodated the data set.
SCENARIO A: RECALLING A DATA SET WHEN THERE IS NOT ENOUGH SPACE ON ITS ORIGINAL VOLUME
A data set needs to be recalled, but the disk that originally accommodated the data set does not have enough free space. A manual recall operation is needed to recall the data set with a new volume parameter. The RECALL command will be as follows:
1
TSO M9CLI RECALL M9.APPL.SOURCE NEWV(M9AP01)
Copied!
SCENARIO B: ENSURING VALID EXECUTION OF A JOB WITH ARCHIVED DATA SETS AS INPUT
A batch job requires several archived non-SMS data sets as input. Normally, automatic recall will be used during execution to transparently recall the data sets to their original volumes. But, since the data sets were archived a long time ago, their original volumes no longer exist. To prevent failures during the batch job execution, the system programmer uses the RECALL command in a preliminary job to recall the data sets to new volumes.
1
//M9CLISMF JOB ACCT#,TIME=NOLIMIT,REGION=0M
2
//*
3
//* RECALLING FILES PRIOR TO EXECUTION
4
//*
5
//M9CLI EXEC PGM=IKJEFT01
6
//STEPLIB DD DISP=SHR,DSN=SYS2.MODEL9.LOADLIB
7
//SYSEXEC DD DISP=SHR,DSN=M9.ALL.EXEC
8
//SYSTSPRT DD SYSOUT=*
9
//SYSPRINT DD SYSOUT=*
10
//SYSTSIN DD *
11
M9CLI RECALL M9.APPL.Y2015 NEWV(M9APL4)
12
M9CLI RECALL M9.APPL.Y2016 NEWV(M9APL3)
13
M9CLI RECALL M9.APPL.Y2017 NEWV(M9APL2)
14
M9CLI RECALL M9.APPL.Y2018 NEWV(M9APL1)
15
M9CLI RECALL M9.APPL.Y2019 NEWV(M9APL0)
16
/*
17
//
Copied!
Last modified 1mo ago
Export as PDF
Copy link