"Well moving my graph program to formats program is not feasible ." - I am not talking about moving your graph program anywhere, I am talking about moving the code which creates the Out macro variable to the format program, i.e. define the macro before it is used.
"I am grading my visit as per order needed on X-axis and using the Numerical value . Then using the format of the Visit2 as the Label of Tick mark " - possible a mis-understanding here. The value in the dataset should be numeric, so you get the correct ordering, then you have the formatted data in the output per the format.
Its really hard to follow what you want. As a note, for lab graph outputs, normally it would look something like, visit (i.e. visit 1, visit 2 etc.) on the xaxis, value on the y axis, and a sub-header showing the parameter, unit, gender, normal range etc. So have one graph per by group so the axis ranges are smaller and easier to see points.
... View more