I am implementing a stored procedure to dump a list of
previous days work orders. The recipient of this lovely
list of work orders is utilizing an older system of fixed
length flat files for import and processing.
Each row in the output file is 500 bytes and must be 500
bytes to be cosidered a valid row before the receiving
process will even accept the data. Some data uses the full
500 bytes while some don't. Those that don't are padded out with blanks.
Consider the following short example:
I am finding that the SP is truncating the end of the
records of the blank spaces which are needed by the
receiving system. Know of any good way to Execute this
SP and have the blanks preserved? I have tried a couple
different approaches but I must be overlooking something
quite simple. I can't see the forest for the trees today.
previous days work orders. The recipient of this lovely
list of work orders is utilizing an older system of fixed
length flat files for import and processing.
Each row in the output file is 500 bytes and must be 500
bytes to be cosidered a valid row before the receiving
process will even accept the data. Some data uses the full
500 bytes while some don't. Those that don't are padded out with blanks.
Consider the following short example:
Code:
Fields name Size
----------- -----
LName 15
FName 10
Item 12
----------- ------
37
Code:
Desired Output Rows ( - represents blanks )
=====================================
Jones----------Bill------Screwdrivers<eol>
Smith----------Carol-----Hammer------<eol>
Vitterman------Tom-------Pipe Wrench-<eol>
Code:
Results Per General Execution ( - for blanks)
=====================================
Jones----------Bill------Screwdrivers<eol>
Smith----------Carol-----Hammer<eol>
Vitterman------Tom-------Pipe Wrench<eol>
I am finding that the SP is truncating the end of the
records of the blank spaces which are needed by the
receiving system. Know of any good way to Execute this
SP and have the blanks preserved? I have tried a couple
different approaches but I must be overlooking something
quite simple. I can't see the forest for the trees today.