Hi Perderabo,
I am sorry for uploading the program twice:
Here is the input data
UNB+UNOA:2+BFT:ZZ+A9J:ZZ+060205:1004+2000221++GMDELFOR
UNH+2000221001+DELFOR
:97A:UN
BGM+241:::PS+07+5
DTM+137:20060205:102
DTM+158:20060205:102
DTM+159:20060624:102
FTX+AAI+++PLNNG RLSE 30 WILL SHOW BUILD WK RLSE 31 WILL SHOW MRD
NAD+SU+085397805::16++AROMAT CORP
NAD+MI+88835::92
GIS+37
NAD+ST+19054::92
LIN+++15294047:IN
PIA+1+6:RY
LOC+11+RYD
RFF+ON:15WZ0004
QTY+79:0:EA
DTM+51:20051225:102
DTM+52:20060204:102
QTY+3:0:EA
DTM+51:20051225:102
DTM+11:20060205:102
SCC+4++W:21
QTY+1:1:EA
DTM+158:20060508:102
QTY+1:1:EA
DTM+158:20060515:102
SCC+2
QTY+3:0:EA
DTM+51:20051225:102
DTM+52:20060319:102
SCC+3
QTY+3:0:EA
DTM+51:20051225:102
DTM+52:20060319:102
UNT+34+2000221001
UNZ+1+2000221
UNB+UNOA:2+BFT:ZZ+A9J:ZZ+060205:1004+2000220++GMDELFOR
UNH+2000220001+DELFOR
:97A:UN
BGM+241:::PS+07+5
DTM+137:20060205:102
DTM+158:20060205:102
DTM+159:20060624:102
NAD+SU+085397805::16++AROMAT CORP
NAD+MI+88835::92
GIS+37
NAD+ST+18003::92
LIN+++15117110:IN
PIA+1+6:RY
LOC+11+DDD
LOC+159+2G5-F-G
RFF+ON:15WZ0000
QTY+79:3945:EA
DTM+51:20051225:102
DTM+52:20060204:102
QTY+3:3945:EA
DTM+51:20051225:102
DTM+11:20060203:102
SCC+1++W:21
QTY+1:810:EA
DTM+158:20060206:102
QTY+1:542:EA
DTM+158:20060213:102
SCC+2
QTY+3:5297:EA
DTM+51:20051225:102
DTM+52:20060219:102
SCC+3
QTY+3:5297:EA
DTM+51:20051225:102
DTM+52:20060305:102
PAC+++KC323034
QTY+52:15:EA
LIN+++15856412:IN
PIA+1+6:RY
LOC+11+DDD
LOC+159+2F6-A
RFF+ON:15WZ0006
QTY+79:0:EA
DTM+51:20051225:102
DTM+52:20060204:102
QTY+3:0:EA
DTM+51:20051225:102
DTM+11:20060205:102
SCC+1++W:21
QTY+1:105:EA
DTM+158:20060213:102
SCC+4++W:21
QTY+1:840:EA
DTM+158:20060220:102
QTY+1:1170:EA
DTM+158:20060227:102
QTY+1:1200:EA
DTM+158:20060306:102
QTY+1:1740:EA
DTM+158:20060313:102
QTY+1:1110:EA
DTM+158:20060320:102
QTY+1:1155:EA
DTM+158:20060327:102
QTY+1:825:EA
DTM+158:20060410:102
QTY+1:690:EA
DTM+158:20060417:102
QTY+1:930:EA
DTM+158:20060424:102
QTY+1:1365:EA
DTM+158:20060501:102
QTY+1:1365:EA
DTM+158:20060508:102
QTY+1:1215:EA
DTM+158:20060515:102
QTY+1:1035:EA
DTM+158:20060522:102
QTY+1:855:EA
DTM+158:20060529:102
SCC+2
QTY+3:91:EA
DTM+51:20051225:102
DTM+52:20060219:102
SCC+3
QTY+3:2109:EA
DTM+51:20051225:102
DTM+52:20060305:102
PAC+++KC323034
QTY+52:15:EA
UNT+89+2000220001
UNZ+1+2000220
And, another thing is that I have the input data like:
QTY+1:105:EA
DTM+158:20060213:102
so, in the report under date required it should show 20060213 but it is showing 20060315.
It is showing the wrong date only for this part number and for all the other part numbers the date is correct.
So I don't know what I am doing wrong?
Regards,
Inder