How to get the job definition for Top Level box only

Document ID : KB000046058
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

 

We need to get the job definition for the Top Level boxes in our AutoSys instance.
But when we run "autorep -q -J Top-Level-box-name" we get the jil for the whole job stream including all the inner boxes and jobs inside the Top Level box.
 

Environment: 

 
WA AE 11.3.6 SP4 on Linux
 

 

Answer: 

 

This is the normal behavior. By default, "autorep -q -J Top-Level-box-name" will provide the job definition for whole job stream including all the inner boxes and jobs inside the Top Level box.

 

However, you can add the -L flag to define the number of levels you would like autorep to return in the job stream. For example, if you want to get only the Top Level boxes definition you can use the following command :

 

autorep -q -J Top-Level-box-name -L 1 

 

 

Problem resolved by applying the solution.