View previous topic :: View next topic
|
Author |
Message |
noorkh
New User
Joined: 06 Mar 2006 Posts: 76 Location: Chennai
|
|
|
|
Hi,
In my COBOL program i need to use 3 arrays. I don't want to use 3 arrays inspite of that i want to store one array records into some temporary file created within program. This file we call as Virtual file in Easytrieve.
Can any one of you tell me how to create virtual file?
By virtual file i mean, this file should be created within program execution, and it should be deleted by itself before program execution completes.
Noor. |
|
Back to top |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
|
|
in the sort and merge statment there is one virtual file is created called work file
the work file can be described by
SD FILENAME
in file section of data division. |
|
Back to top |
|
|
noorkh
New User
Joined: 06 Mar 2006 Posts: 76 Location: Chennai
|
|
|
|
Hi,
Thanks for your reply.
Can you please be more descriptive?
Can you please give me any syntax if you have any thing with you? And document related to that.
Thanks in advance
Noor. |
|
Back to top |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
Back to top |
|
|
noorkh
New User
Joined: 06 Mar 2006 Posts: 76 Location: Chennai
|
|
|
|
Hi,
Thanks for your reply.
By declaring SD i can sort that file but i need to do something like storing it into that file.
But if i declared it as a SD i can't open or close it.
Any comments.
Noor |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Noor,
Why do you need a temporary file that is created/deleted within the COBOL program? Why not use JCL? How do you intend on processing this file? Open it as output, write some records to it, close and re-open as input?
Please explain your logic further; I'm sure we can help.
Dave |
|
Back to top |
|
|
noorkh
New User
Joined: 06 Mar 2006 Posts: 76 Location: Chennai
|
|
|
|
Hi,
Sorry for delayed reply. I was quite busy.
My program needs to use, 3 arrays but in that 2 arrays will be containing very minimal records let us say 200records( at max) but 3rd array might contain more than 1500 records. Though Arrays are able to process this I am little bit worried about performance.
I have records in following way
policy
quote
client ( 3rd array is for this record type)
cover
cover
client helper (above stored 3rd array will be used here to link key)
Now I am thinking, inspite of storing client records into some array if i store it in some virtual file which can be used downside, performance wise my program will be good.
Am I clear. Please reply me if you need more input.
Thanks in advance.
Noor. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
I'm still not clear on exactly how you plan on processing, but a (COBOL) table, sequentially processed will be much faster than any file processing.
1500 records in a COBOL table is still pretty insignificant.
Let us know how you plan on processing the Table/File, Maybe some one will have good table processing techniques.
Dave |
|
Back to top |
|
|
|