>create cursor MyCursor1 (field1 c(10), field2 n(12,2), field3 i) >>and so on. But I wanted to have the structure of these cursors outside of the code so that I can change it, if necessary, without changing the program. So the approach I though is as follows:
>*** text file MyCursors.txt ><Cursor1Name>field1 c(10), field2 n(12,2), field3 i</Cursor1Name> ><Cursor2Name>field1 c(40), field2 n(1,2), field3 i</Cursor21Name> >>So, at run-time, I can read this .txt (or other extension) file using filetostr(). And, then using STREXTRACT() get the structure of any cursor. It will be a very small Function. Then use the extracted line of the Structure in the CREATE CURSOR command.
Cursor1Name:field1 c(10), field2 n(12,2), field3 i: Cursor2Name:field1 c(40), field2 n(1,2), field3 i:would be simpler and would do. I assumed a different scenario for your requirements because, since you've been digging around the consumption of Web Services, you might be getting the data structure downstream...