Ok, perhaps I am going about this the wrong way...
Since I know the specific file layout that I will need to generate for the COBOL application... Is it possible to create a fixed width text file that has the additional numbers and characters? Say, could I have the C# app generate the variables (EX. 112.40) then add code to append to that variable? This would be done to meet the COBOL requirements in the example.
So by design and standard calculations I could generate the variable 112.40 in C# with no issue then store this somewhere. I could then append constants to that variable (IE - to meet the COBOL format of 9(4)v9(3)+-) for a result of 0112400+. This could all then be written to a fixed width text file. Does this seem like a reasonable approach?
Main Topics
Browse All Topics





by: rommelitPosted on 2009-10-31 at 03:08:19ID: 25709072
Oh yeah, not sure if it is standard but the file will be fixed width.