Read file without using cat (or any Unix Command)

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
shivam5483
Participant
Posts: 3
Joined: Sat Jun 22, 2019 10:50 am
Location: Pune

Read file without using cat (or any Unix Command)

Post by shivam5483 »

I have a file in a Unix path which has data like:
2019-06-21,2019-06-22|2019-06-22,2019-06-23

I want to read this date and pass this to User Variable Activity .

I am not allowed to Use ant Unix command to read the file.

I read some forum and found that it can be done by routine activity,but not sure where to write the routine and whats the routine name.

Can anyone help in this.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How are your BASIC programming skills?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

One occurrence of this question is all we need so let's chat here. I've deleted the other.

Custom routines, which can be used to read files, require some BASIC skills and understanding of how one reads a file programmatically. That going to work for you? Otherwise you need to push back on the (IMHO silly) restriction of not using O/S commands for this.

Found an example of a routine here if you want to see what's involved with that.
-craig

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