Thank you so much for your suggestion. I tried implementing your code, it is working as I wanted.
I have also gone through the link which you attached in your message and also through ANSYS Apdl manual.
I want to ask you a question, above written code is for a single step which is divided into 5 substeps each of size 0.25s. And the corresponding load is divided into these 5 substeps in a one single step. How can we implement this code for multiple steps ? If we can implement through apdl commands then do we need to also change analysis settings accordingly ?
Another question is as you can see, the output is obtained from the 2nd step i.e., from 0.25 s, how can I get response from 0 s i.e., from step 1.