I have created this sample file written some sample records.
Now on the command line I am writing the macro name.
It is saying the it(macroname) could not be found though the dataset in which macro reside is altlib activated.

Not from the same ID that you logged in as
By session id I mean the screen (session) id
You process the ALTLIB from one of the open screens, and then without swapping screen you then try and execute the macro.

Yes, X'Mas is celebrated in India too and with full conviction, Peter. A sizeable population of the Christian Community resides in Mumbai (of the Indian state of Maharashtra) and is mainly Roman Catholics. It is a delight to watch their homes during Christmas.