IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Temporary file in COBOL as Virtual file in Easytrieve


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Mon Aug 28, 2006 12:57 pm
Reply with quote

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
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Mon Aug 28, 2006 1:02 pm
Reply with quote

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
View user's profile Send private message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Mon Aug 28, 2006 1:11 pm
Reply with quote

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
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Mon Aug 28, 2006 4:27 pm
Reply with quote

hello noorkh you can find details about sd at http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IGY3LR00/5.2.1?DT=20011206182158

also slect clause at http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IGY3LR00/4.2.2?SHELF=&DT=20011206182158&CASE=
Back to top
View user's profile Send private message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Mon Aug 28, 2006 5:11 pm
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Aug 29, 2006 3:22 am
Reply with quote

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
View user's profile Send private message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Fri Sep 01, 2006 5:42 pm
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Sep 02, 2006 12:51 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top