Handling ^M

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Still don't like that DOS radio button solution, eh? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Jeez, gave up on the easiest solution awhile back. A single click for Pete's sake. Instead, we're now in the realm of prepping the file.

Rather than use the unix program design for stripping ^M from a file, we're talking about the finer points of how to use sed. Why not ftp the file to a Windoze machine in binary, then get it back using ASCII transfer? That'll drop the ^M's.

No, no, wait, I know. Let's read it with a DS job with the radio button selected to DOS and write it back to a file where the radio button is selected as Unix. Now, you can read it using the Unix button selected. Oh wait, didn't I just write a poor mans dostounix using DS??? :cry: I give up.

Hurricane Wilma, take me away. :shock:
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

See what happens when you board up a house with someone still in it? :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply