GitHub Pages
There are 3 folders to hold flat files
A. C:\EDI where incoming flat file is stored and its name is predefined
[pic]
← For this example, file extension is not used
B. EDIArchive: to store combined file
[pic]
C. EDIArchive02 to save the original files after combined
[pic]
D. Example of incoming flat files
[pic]
← Make it sure that the last line contains return carriage or new line character. For this example, cursor is located at 3rd line
[pic]
[pic]
E. Run “Combine Flat File”
Combine Flat File
evt_SourceFile_EXEP
evt_TargetFile_EXEP
evt_mnFirstFile
evt_mnLastFile_SEQ
evt_szSeqInString_DL01
evt_mnExistenceFlag
evt_ErrorCode
evt_DataItem
evt_Archive_EXEP
evt_OutputDateToday
OPT: Using Defaults
0001 //
0002 // If possible, create a table to write how flat files are handled with date,
0003 // sequence and audit information. Since for Data Exchange there are more than
0004 // 2 parties are involved so it is advisable to do so.
0005 //
0006 // If a new file name does exist then move it to archive location with
0007 // meaningful file name (850INALL_ddMMMyy_SEQ or
0008 // 850INALL_ddmmyyyy_uniquenumber)
0009 //
0010 VA evt_TargetFile_EXEP = "C:\EDI\850INALL"
0011 Operating System File Operations Delete, Rename, File Exists
"E" -> BF cActionCode
VA evt_TargetFile_EXEP BF szFileName1
"1" -> BF cSetOneWorldErrorFlag01
VA evt_mnExistenceFlag BF jdInputDate_DT
"3" -> BF cOutputFormatCode_EV01
VA evt_OutputDateToday BF szOriginalFlatFile
VA evt_Archive_EXEP -> BF szNewFlatFile
"2" -> BF cActionOnFlatFiles
-> BF cSuppressErrorMessage
VA evt_ErrorCode BF cActionOnFlatFiles
-> BF cSuppressErrorMessage
VA evt_ErrorCode BF cSetOneWorldErrorFlag01
VA evt_mnExistenceFlag BF szNewFlatFile
"2" -> BF cActionOnFlatFiles
-> BF cSuppressErrorMessage
VA evt_ErrorCode BF szNewFlatFile
"2" -> BF cActionOnFlatFiles
-> BF cSuppressErrorMessage
VA evt_ErrorCode BF cActionOnFlatFiles
-> BF cSuppressErrorMessage
VA evt_ErrorCode ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- time conversion and time formats
- datetime conversion — converting strings to stata
- using date and date time in formulas salesforce
- working with dates and times stata
- how to convert dates from text to date format using spss
- securitized products cdo data file format data guide
- string lab 2 input and output using strings
- github pages
- note 2 string and file reading and writing
- sutron standard format