on 07-25-2005 10:39 AM
My requirement is to read data from appln server and batchinput the data to the fields.
Problem is the file in appln server has no particular structure. and it is a text file.for ex
KLART OBJEK CLASS STATU STDCL XLINE OBTAB LKENZ ATNAM ATWRT
002 000000000000032047 W 1 1 REPA_KOSTEN_ANTEIL 1,9
002 000000000000032047 W 1 1 REPA_KOSTEN_ANTEIL_DATUM 13.06.2005
And also i need data only for fileds objek,REPA_KOSTEN_ANTEIL and REPA_KOSTEN_ANTEIL_DATUM
and if possible please provide me some code.
Hi,
Looks like the output file is tab seperated.
All you have to do is create a structure similar to the output file structure.
After a read on the dataset u can do a split based on the delimeter tab.
After the values are assigned to the corresponding fields u can read whichever fields are necessary from this structure.
Please let us know if there are anymore things to be considered.
Sharath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use "read dataset" statement to read the file from the application server. Do have a specific delimiter ? It seems to be "tab". If this the case you can split the workarea by "tab".
data separator(1) type x value '09'.
split WA at separator into f1 f2 .. fn.
Svetlin
Message was edited by: Svetlin Rusev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.