coolkl
Well Known Member
Hello All,
I am developing a UBE to read a CSV file from a folder. Currently testing on my local machine. When I am testing, Open File BSFN works and it returns the file pointer (value = 1 in most cases). But then
when Fetch Next Line From Flat File(B76B0220) is executed it does not retrieve any record. All the file in the folder which is read gets cleared. Any idea where I am missing the point ?
My sample code is below and Error debug log for BSFN is attached
Open Flat File
"1" -> BF cSuppressErrorMessage
VA rpt_szErrorCode_ERRC <- BF cErrorCode
VA rpt_szErrorMessage_DTAI <- BF szErrorMessageId
<Zero> -> BF cAppendMode
VA rpt_szFilePointer_GENLNG <- BF idFilePtr
VA rpt_szCC_COBRAURL -> BF szFilePath
Fetch Next Line from Flat File
VA rpt_szFileName_PTH -> BF szFlatFileName
VA rpt_szFilePointer_GENLNG -> BF idFilePtr
VA rpt_szFlatFileRecord_DS200 <- BF szFlatFileRecord
VA rpt_mnRecordLength_RECL <- BF mnRecordLength
"1" -> BF cSuppressErrorMessage
VA rpt_szErrorCode_ERRC <- BF cErrorCode
VA rpt_szErrorMessage_DTAI <- BF szErrorMessageID
I am developing a UBE to read a CSV file from a folder. Currently testing on my local machine. When I am testing, Open File BSFN works and it returns the file pointer (value = 1 in most cases). But then
when Fetch Next Line From Flat File(B76B0220) is executed it does not retrieve any record. All the file in the folder which is read gets cleared. Any idea where I am missing the point ?
My sample code is below and Error debug log for BSFN is attached
Open Flat File
"1" -> BF cSuppressErrorMessage
VA rpt_szErrorCode_ERRC <- BF cErrorCode
VA rpt_szErrorMessage_DTAI <- BF szErrorMessageId
<Zero> -> BF cAppendMode
VA rpt_szFilePointer_GENLNG <- BF idFilePtr
VA rpt_szCC_COBRAURL -> BF szFilePath
Fetch Next Line from Flat File
VA rpt_szFileName_PTH -> BF szFlatFileName
VA rpt_szFilePointer_GENLNG -> BF idFilePtr
VA rpt_szFlatFileRecord_DS200 <- BF szFlatFileRecord
VA rpt_mnRecordLength_RECL <- BF mnRecordLength
"1" -> BF cSuppressErrorMessage
VA rpt_szErrorCode_ERRC <- BF cErrorCode
VA rpt_szErrorMessage_DTAI <- BF szErrorMessageID