revierving data from exported reslut set in bteq

Database
N/A

revierving data from exported reslut set in bteq

hi all,
I am writing a bteq in which a query result is exported to a file say error.txt.Now i want to use the data inside file for putting if/else condition based on data.Ex the output of query is 1 or 0,mean result in 3rd line of exported data file,i want to use if else condition for another query.but how can i retrieve data from exported data file.Can i sed in some way .....please suggest me ASAP .
Thanks in advance,
1 REPLY
N/A

Re: revierving data from exported reslut set in bteq

Hi Kapil,

You can use the following command to get the output from the exported file.

out_var=`sed -n '3,3 p' file_name`

Thanks