on 05-16-2007 1:35 PM
hi all
my question is
how i can create datatype for sender file message which is in the form of
HEADER|22012007|WMD
123565139|220.05
131675434|345.45
178765544|421.00
143563345|334.00
TRAILER|4|1324.50
HERE how i can include header info in my data type
in header date is going to change and site like wmd,rmd,usa is going to vary.
and in addition to that i want to check count all records with trailer and if ok i should send 'ok'message' to reciever and if not 'error'to reciever and in same way i have to check amount with trailer.
waiting for ur answer.
bye.
regards.
seeta ram.
Hi,
As explained above you need to use the below structure
Header ( 0.. 1)
field1
feidl2
Data (0.. unbound)
field3
field4
Footer (0.. 1)
field5
field6
and to count the no of records of data and check with the footer field5 value if it is equal then we can do required
this you can achieve by the UDF .. in that take the count of Data as one input and the field 5 value as second input ..
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seeta Ram
you can create the data type like
Header(1..1)
field1(date)
field2
data(0..unbounded)
field1
field2
trailer(1..1)
field1
field2
field3
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.