include::../description.adoc[]

include::../ask-yourself.adoc[]

include::../recommended.adoc[]

== Sensitive Code Example

----
MOVE "admin" TO UID.
MOVE "letMeIn" TO PWD.
EXEC SQL
  CONNECT :UID  *> Sensitive
  IDENTIFIED BY :PWD  *> Sensitive
  AT :MYCONN
  USING :MYSERVER
END-EXEC.
----

== Compliant Solution

----
DISPLAY env-name-pwd UPON ENVIRONMENT-NAME
ACCEPT env-val-pwd FROM ENVIRONMENT-VALUE *> Compliant

DISPLAY env-name-uid UPON ENVIRONMENT-NAME
ACCEPT env-val-uid FROM ENVIRONMENT-VALUE *> Compliant

EXEC SQL
  CONNECT :env-name-uid
  IDENTIFIED BY :env-val-pwd
  AT :MYCONN
  USING :MYSERVER
END-EXEC.
----

include::../see.adoc[]

ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
