How to retrive the output of sample program
I got a input to user . How to I print the input in another method
ClassMethod sample() As %String
{
Set Name=##class(Eam.Empdetails).%New()
r "enter your name :",NameStr
s Name.EmpName=NameStr
r "enter your address:",NameStr1
s Name.Address=NameStr1
r "Enter your Phone number:",NameStr2
s Name.PhoneNo =NameStr2
r "Enter Your Id:",NameStr3
s Name.id = NameStr3
set status = Name.%Save()
}