Well I didn't do much... Read the File with
"ALLOC DA('DATASET NAME') F(INPUT) SHR"
"EXECIO * DISKRU INPUT (STEM LINE."
using loop read the line one by one...till LINE.0 and then used SUBSTR to get what I want from the line..and did some calculation on that.....
Thanks to all...now I can start with learning REXX...