Previous Topic

Next Topic

Book Contents

Book Index

An example (v7.5 and later)

In EnterpriseSCHEDULE v7.5 and later use the following procedure. To automate the use of the procedure schedule_convert.com use the following steps.

1. If you are using Cache then during this record and test playback use the following command to intercept any possible incorrect logouts.

$ @schedule_library:schedule_login testing <cr>

2. Record the procedure: (characters typed are in red)

$ schedule_bptd record sample.rec <cr>

Exit keystroke capture with a "<CTRL>\"

Ks$ @schedule_library:schedule_convert <cr>

Select CONVERT operation to perform:

(The server should not be running when

any of these operations are done.)

1. CONVERT CONTROL.DAT

2. CONVERT HISTORY.DAT

3. Reclaim space in QUEUE.DAT

4. all of the above

9. EXIT

Function: 4 <cr>

************* Processing SCH0_CONTROL.DAT **********

CONVERT Statistics

Number of Files Processed: 1

Total Records Processed: 11995 Buffered I/O Count: 2086

Total Exception Records: 0 Direct I/O Count: 13489

Total Valid Records: 11995 Page Faults: 101

Elapsed Time: 0 00:01:39.61 CPU Time: 0 00:00:01.23

************* Processing SCH0_HISTORY.DAT **********

CONVERT Statistics

Number of Files Processed: 1

Total Records Processed: 42561 Buffered I/O Count: 402

Total Exception Records: 0 Direct I/O Count: 4384

Total Valid Records: 42561 Page Faults: 402

Elapsed Time: 0 00:00:18.15 CPU Time: 0 00:00:01.65

************* Processing SCH0_QUEUE.DAT ************

Queue integrity check started

Queue free list size is 11

Queue integrity check completed

Ks$ logout<cr>

Keystroke capture completed

$

3. Review the results. The results of the above command are:

$ type sample.rec <cr>

<<NOAUTOCR>>

$ set terminal/device=VT300<<CR>>

$ @schedule_library:schedule_convert<<CR>>

4<<CR>>

logout<<CR>>

$

Every keystroke is recorded. All control characters are converted into strings of the form <<xxxxx>>. Any line breaks or returns that are introduced by editing this file will not cause any additional characters to be sent during playback.

Some menus may require a short pause before answering the menu prompt. Short pauses can be introduced by adding <<wait1sec>> at appropriate places in the recorded file. The number of seconds can be between 1 and 9. In this cause a line would be inserted before the 4<<CR>>. To determine if this is needed do the playback test below with and without the delays, and check the results.

4. Playback the file to be sure it works as expected.

$ schedule_bptd playback sample.rec <cr>

Process spawned at 2-AUG-2016 11:11:15.23

Ko$ $ set terminal/device=VT300

Ko$ $ @schedule_library:schedule_convert

Select CONVERT operation to perform:

(The server should not be running when

any of these operations are done.)

1. CONVERT CONTROL.DAT

2. CONVERT HISTORY.DAT

3. Reclaim space in QUEUE.DAT

4. all of the above

9. EXIT

Function: 4

..........................

Ko$ $ logout

Process MOSSBERG_12740 logged out at 2-AUG-2016 11:11:15.53

$

5. Create a job inside EnterpriseSCHEDULE to contain these commands. For the purposes of this example let's call the job monthly_convert. Any name can be used.

$ schedule create monthly_convert <cr>

$ schedule insert monthly_convert sample.rec <cr>

6. Modify the job to have the Schedule Pseudo Terminal (VT) command interpreter selected.

$ schedule modify monthly_convert/submit=cli:vt <cr>

7. Using the EnterpriseSCHEDULE GUI the properties for the this job appear as follows:

8. Submit the job for execution.

$ schedule submit monthly_convert <cr>

9. Review the log file.

$ schedule type/batch_log monthly_convert <cr>

Executing on node ORION, in queue SYS$BATCH

--------------------------------------------------------------

S C H E D U L I N G (1) System V7.6.12 ISE, Inc.

ISE, Inc.

Job [BMOSSBERG]monthly_convert

monthly_convert

On node ORION::

In queue SYS$BATCH (queue entry 865)

Submitted on 6-AUG-2016 10:59:55.69

Started on 6-AUG-2016 10:59:57.91

Job step 0

Set id. 1200

Set tag

Set parameter

Schedule entry 1057

--------------------------------------------------------------

$ schedule_bptd playback disk$orion1:[mossberg]monthly_convert.vt;

Process spawned at 6-AUG-2016 10:59:59.06

Ko$ $ set ter/dev=vt300

Ko$ $ @schedule_library:schedule_convert

Select CONVERT operation to perform:

(The server should not be running whenany of these operations are done.)

1. CONVERT CONTROL.DAT
2. CONVERT HISTORY.DAT
3. Reclaim space in QUEUE.DAT
4. all of the above

9. EXIT
Function: 3
%SCHEDULE-I-QDCHKSTA, Queue integrity check started
%SCHEDULE-I-QDFREESIZE, Queue free list size is 11
%SCHEDULE-I-QDCHKOK, Queue integrity check completed
Ko$ $ logout
Process MOSSBERG_28632 logged out at 6-AUG-2016 11:00:11.22
MOSSBERG job terminated at 6-AUG-2016 11:00:13.52

Accounting information:

Buffered I/O count: 473 Peak working set size: 6176

Direct I/O count: 142 Peak virtual size: 175808

Page faults: 1331 Mounted volumes: 0

Charged CPU time: 0 00:00:00.16 Elapsed time: 0 00:00:17.07

See Also

Automating using BPTD

An example (v7.4 and earlier)

Considerations to keep in mind