Page 1 of 1

Read file without using cat (or any Unix Command)

Posted: Sun Jun 23, 2019 10:31 am
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.

Posted: Sun Jun 23, 2019 10:33 am
by chulett
How are your BASIC programming skills?

Posted: Sun Jun 23, 2019 3:28 pm
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.