The are saying that a statement such as: OPEN (7, ACCESS = 'DIRECT',STATUS = 'SCRATCH') You can create a temporary file--one that will only live until you close it, and not be saved to disk. This file needs no name (it's never going to be referred to by name) just a unit number (in my example 7) You can use this file to hold the account information temporarily during a transaction. You need this because, when you are inserting rows into the real file, and you don't want to overwrite subsequent data.So they are saying: Copy everything to a temporary file If the transaction succeeds, copy the data back to the main file but Omit rows that are to be deleted Add in the rows that are to be inserted Does that help?
The are saying that a statement such as: OPEN (7, ACCESS = 'DIRECT',STATUS = 'SCRATCH') You can create a temporary file--one that will only live until you close it, and not be saved to disk. This file needs no name (it's never going to be referred to by name) just a unit number (in my example 7). You can use this file to hold the account information temporarily during a transaction.
You need this because, when you are inserting rows into the real file, and you don't want to overwrite subsequent data. So they are saying: Copy everything to a temporary file If the transaction succeeds, copy the data back to the main file but Omit rows that are to be deleted Add in the rows that are to be inserted Does that help?
Thank you for your answer. That helps me a lot. One thing, do I still have to open the "account.
Txt" file to do this? If so, do I need to use the same UNIT number that is used in temporary file? – Uka Apr 5 '09 at 15:38 Yes, you need to open "account.
Txt", but with a different unit number. – MarkusQ Apr 5 '09 at 18:19.
My TA said that I have to use temporary file. This temporary file will read line by line to find what the user is looking for. However, I did not understand this temporary OPEN file at all.
Does anyone explain what that is, and if it's possible, would you attach example of it? This project is about writing a program to perform transactions on bank accounts. You will be given a file which contains all the accounts in the bank (the file is named “account.
Your program is to provide an interactive menu for users to perform transactions on these accounts. Your program needs to update the account file after each transaction. The user may perform transactions on accounts that are not available.
Your program needs print an error message on the screen and return to the menu.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.