Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Temporary file in COBOL as Virtual file in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Temporary file in COBOL as Virtual file in Easytrieve
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: 128
Location: kerala,india

PostPosted: Mon Aug 28, 2006 1:02 pm    Post subject: Re: Vitual file in Cobol
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    Post subject: Re: Vitual file in Cobol
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: 128
Location: kerala,india

PostPosted: Mon Aug 28, 2006 4:27 pm    Post subject:
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    Post subject: Re: Vitual file in Cobol
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    Post subject: Re: Temporary file in COBOL as Virtual file in Easytrieve
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    Post subject: Re: Temporary file in COBOL as Virtual file in Easytrieve
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    Post subject: Re: Temporary file in COBOL as Virtual file in Easytrieve
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us