The $db_password or %db_password%(Windows) environment variable can be used to pass the Job's Primary Login password value to your script or however else a environment variables are used.
The Primary Login is defined within the Job's Execution Options window.
However, if the Login password exceeds 100 characters, the db_password environment variable resolves to only the first 100 characters.
Applications Manager 9.x
When saving a Login object with a password greater then 100 characters, only the first 100 characters is written to the database. This is a client specific issue.
This issue is currently being investigated to determine if it is a bug.
If found a bug, a fix will be included in a future version of Applications Manager, and this article will be updated.
Workaround: