I have following stream for generating the CIM file ....
output stream arquivo to 'zzprmptr1cg.cim'.
for each tt-carga no-lock:
put stream arquivo '"' at 01 tt-carga.t-site '" ' skip
'"' at 01 tt-carga.t-fornec '" ' skip
'"' at 01 tt-carga.t-item '" ' skip
'"' at 01 tt-carga.t-lugar '" '
'"' tt-carga.t-conta format '99999' '" ' skip
'"' at 01 tt-carga.t-qtde format '99999' '" ' skip
'S' at 01 skip
'.' .
end.
output stream arquivo close.
BUT when i see the CIM file generated the dot(.) is appearing only once for first record while other records are coming without it SO my data is not getting loaded properly. Can anyone tell me why does dot appears only once.. the generated CIM file looks this way
"10010 "
"10000008"
"10763103 "
"AJC05A5 " "20 "
"200 "
S
.
"10010 "
"10000008"
"10763117 "
"AJB05F2 " "10 "
"200 "
S
"10010 "
"10000008"
"10763693 "
"AJC04D2 " "0 "
"0 "
S
output stream arquivo to 'zzprmptr1cg.cim'.
for each tt-carga no-lock:
put stream arquivo '"' at 01 tt-carga.t-site '" ' skip
'"' at 01 tt-carga.t-fornec '" ' skip
'"' at 01 tt-carga.t-item '" ' skip
'"' at 01 tt-carga.t-lugar '" '
'"' tt-carga.t-conta format '99999' '" ' skip
'"' at 01 tt-carga.t-qtde format '99999' '" ' skip
'S' at 01 skip
'.' .
end.
output stream arquivo close.
BUT when i see the CIM file generated the dot(.) is appearing only once for first record while other records are coming without it SO my data is not getting loaded properly. Can anyone tell me why does dot appears only once.. the generated CIM file looks this way
"10010 "
"10000008"
"10763103 "
"AJC05A5 " "20 "
"200 "
S
.
"10010 "
"10000008"
"10763117 "
"AJB05F2 " "10 "
"200 "
S
"10010 "
"10000008"
"10763693 "
"AJC04D2 " "0 "
"0 "
S