JIL doesn't prompt for password when using -usr argument combined with redirected input
search cancel

JIL doesn't prompt for password when using -usr argument combined with redirected input


Article ID: 231655


Updated On:


CA Workload Automation AE


When using the jil command with the -usr <user> argument, it will prompt for a password when running it interactively. However, if a file is redirected as standard input for the jil command, it does not prompt for a password and the following error is displayed...

CAUAJM_E_60400 Required parameter -pw or -pwx missing. Command aborted.

Is there a way to have jil prompt for a password when using -usr along with redirected input?


Release : 11.3.6.x/12.x



There would not be an option to have jil prompt for the password when using the -usr argument combined with redirected input. You must supply a password on the command line. However, you do have the option to supply the password in encrypted form so that it is not logged in plain text. You can encrypt the password using autosys_secure and then use that encryption in the jil command via the -pwx argument...

Run autosys_secure
Select [6] Get encrypted password.
Select [1] Encrypt password for instance configuration (using AES).
Enter password and confirm. (password is not displayed when entering it)
The encryption for the entered password will be displayed...

CAUAJM_I_60062 Password= D776F66C5992974A0C86C19E2E2AAEA0

Select [0] Exit AutoSys Security Utility.

Use the encryption from autosys_secure as the value for the -pwx argument in the jil command... 

jil -usr user1 -pwx D776F66C5992974A0C86C19E2E2AAEA0 < test_jil.jil

CAUAJM_I_50323 Inserting/Updating job: test_usr
CAUAJM_I_50205 Database Change WAS Successful!

CAUAJM_I_52301 Exit Code = 0