This section describes how to extract the contents of a SCHEDULE database into an ASCII text file. This is especially useful if you need to copy the database to another server or email a database as an attachment. The following commands will generate two new text files. The first file (part1.schedule) describes the directory structure of the database while the second file (part2.schedule) describes the contents of all the database records (i.e. jobs, calendars, variables, layouts, etc).
OpenVMS:
Schedule> dir/dir [*],[*.*] /log/template=%schedule_library%template_db.schedule/out=part1.schedule
Schedule> dir/all [*]*,[*.*]* /log/template=%schedule_library%template_db.schedule/out=part2.schedule
UNIX/Linux:
Schedule> lsdir /*/,/*/*/ -log-template=%schedule_library%template_db.schedule -out=part1.schedule
Schedule> dls /*/*,/*/*/* -log-template=%schedule_library%template_db.schedule -out=part2.schedule
Windows:
Schedule> dir/dir \*\,\*.*\ /log/template=%schedule_library%template_db.schedule/out=part1.schedule
Schedule> dir/all \*\*,\*\*\* /log/template=%schedule_library%template_db.schedule/out=part2.schedule
What it does: Extracts the entire database into files, which can be inserted using the source, @ or . command.
To insert the extracted database, see: Insert an extracted database. See Extract a job's list data (extract/job or extjob) for a detailed description of this command.