Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to retrieve data stored in a variable in another run?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Wed Jan 16, 2008 7:04 pm    Post subject: How to retrieve data stored in a variable in another run?
Reply with quote

Hi all,

I have run a COBOl pgm, and a data is stored in a variable. I need the same data in the same variable in the consequent runs of the program. How is it possible? Can anyone help me on this?
Is there something like RESTORE?

Thanks,
lax
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 7:05 pm    Post subject:
Reply with quote

Lax,

Save the values in a file and read it in next run.
Back to top
View user's profile Send private message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Wed Jan 16, 2008 7:07 pm    Post subject: Reply to: How to retrieve data stored in a variable in anoth
Reply with quote

Hi murmohk,

But according to the standards and conventions specific to my requirement, i have some limitations for using additional files. Is there any other way?

Thanx,
lax
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 8:01 pm    Post subject:
Reply with quote

lax,
I had already answered your question. If you get other way, then let us know.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 8:06 pm    Post subject:
Reply with quote

But where else would it be stored if not in an external file.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 8:13 pm    Post subject:
Reply with quote

Expat,

Quote:
But where else would it be stored if not in an external file

Thats what I wanted to know from TS. If he comes up with an unusual (rahter unique) way.... we can learn from his experience.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Jan 16, 2008 8:14 pm    Post subject: Reply to: How to retrieve data stored in a variable in anoth
Reply with quote

I think the O/P needs to be more clearer when they mention "consequent runs of the program". In what type of environment are these occuring? Maybe the environment can hold the value(s).

Also, I don't know much about databases, but could a single data item be stored in a database table rather than in a dataset?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 8:19 pm    Post subject:
Reply with quote

Kevin,

Quote:
I don't know much about databases, but could a single data item be stored in a database table rather than in a dataset?

I believe you are suggesting to store the values in a database as one record.

But TS second post says, 'limitation in using addl files'. I doubt he has the comfort of accessing database. That to for one record, a separate table needs to be created. Again pain ......
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Wed Jan 16, 2008 10:09 pm    Post subject:
Reply with quote

Why the additional file liimitation? If this is for a non-technical reason, then the wrong group is running the show. If technical, then it better be a good one.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 16, 2008 10:55 pm    Post subject:
Reply with quote

Hello,

Quote:
I have run a COBOl pgm, and a data is stored in a variable.
How did the data get into the variable?

Could the same method not be used for all of the other processes that need the same value?

It came from "somewhere" and i suspect that same "where" could be used multiple times.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us