Hi all
Tried to get my answer in the forum but i could not.
My question is simple, i read a PDS dataset, using SUBSTR i delete the part of a string i'm not interested in and the remaining data, wich is 4 integer bytes are written with spaces and i wanted to trasnform those blanks with zeros.
Example:
I read the following line:
xxxxx xxxxxx(1234)
do the subtream and get
1234
but... If a read xxxxx xxxxx ll xxx ( 34)
the result is
34
and i need the result as
0034
I hope to be clear in my explanation, if you need i can write the peace of program i'm using. Tried with the funtion RIGTH, with 4 bytes and filling with zeros, but does not worked.
Thanks !