How to use autocal_asc in a script?

book

Article ID: 50590

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

Description:

autocal_asc is an interactive utility and does not take any argument in command line. How do you use it in a script for mass modifications like removing a large number of old dates or getting the list of all the calendars.

Solution:

The solution is to build a shell script using autocal_asc as in the following example:

Example: Get the content of several calendars:

autocal_asc << EOF   
cal1   
p   
EOF   
autocal_asc << EOF   
cal2      
p 
EOF      
autocal_asc << EOF   
cal3   
p   
EOF
...

Environment

Release: ATSY1C99000-4.5-AutoSys-Job Management-Class 1 Remote Agent
Component: