My requirement is to read a file. Actually there will be a file in the ftp Common folder. We have a script that will take the file from there and keep it in our project folder. When I'm trying to do a view data...I'm unable to..... .
I did a VI and saw that there are some trailing spaces[^M] at the end of each line. I also tried by converting it to ascii mode and the ftp'd the file.....but still was helpless........
Close. It's a command to remove the ^M characters. Problem is it's not quite right. To enter control characters, you first press Ctrl-V and then the character in question. To get a 'control M' you don't type an 'M' - you press ENTER after the Ctrl-V.
You would do this before saving. Best to get the Sequential File settings correct so the file can be read - there's nothing out of the ordinary here and is perfectly feasible to do. And an ASCII ftp to a UNIX box would have converted any <CR><LF> pairs to plain <LF> characters.
-craig
"You can never have too many knives" -- Logan Nine Fingers
means colon then % ,then s then / ,then control v and controll m ,then double slash
enjoy
Grammatical Note
Ur was a city in ancient Babylon. Please use correct English pronouns such as "your" here. Would you use "ur" in your professional documentation? We believe that DSXchange is a community of professionals.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Note that in unix the trailing spaces are losted, i think for better performance.
if you don't want to loose these trailing spaces you must insert another caractere (example_ tab) at the end the record.