Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code to retrieve the values:
- def dbvalue= context["csvfile"] //csv file containing the data
- def count= context["dbrowcount"] //here the rowcount is 23
- for (i=0;i<count;i++)
- {def lines= ""
- lines= DBvalue.text.split('n')
- list<string> rows = lines.collect{it.split(';)}
- log.info "list is"+rows
- }
- sample CSV file on which am working contains 600 column of data with 23 rows
- abc;null;1;2;3;5;8;null
- cdf;null;2;3;6;null;5;6
- hgf;null;null;null;jr;null;II
- currently am code is fetching the below output:
- [[abc,null,1,2,3,5,8,null]]
- [[abc,null,1,2,3,5,8,null]]
- [[abc,null,1,2,3,5,8,null]]
- desired output:
- [1,2,3,5,8]
- [2,3,6,5,6]
- [jr,II]
Add Comment
Please, Sign In to add comment