I've connected to the OpenEdge DB from code using CONNECT -pf mydb.pf.
Could anyone please tell me, How do I need to disconnect it explicitly from the code or It would be automatically disconnected from DB, If needed to disconnect via code, could I use DISCONNECT -pf mydb.pf.
From the notes at the end of the documentation for disconnect:
By default, the AVM disconnects all databases at the end of a session.