Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

export / import variable to memory

Former Member
0 Kudos
3,870

Hi,

I would like to ask, when we use the following syntax to export and import variable to memory, will the memory be read by another user on another memory?


import zabc to zabc from memory id l_mem_id.

export zabc from zabc to memory id l_mem_id.

Is it safe for concurrent processing?

Thanks,

Vicki

1 ACCEPTED SOLUTION

Sougata
Active Contributor
0 Kudos
670

>

> Is it safe for concurrent processing?

Yes, as long as the program clears the specific memory id after use.


import zabc to zabc from memory id l_mem_id.
 
export zabc from zabc to memory id l_mem_id.

FREE MEMORY ID l_mem_id.

Hope this helps.

Cheers,

Sougata.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos
670

>

> I would like to ask, when we use the following syntax to export and import variable to memory, will the memory be read by another user on another memory?

Yes.

0 Kudos
670

Thanks for Amit's reply.

Does 'Yes' mean for first or last question?

0 Kudos
670

For first question.

Sougata
Active Contributor
0 Kudos
671

>

> Is it safe for concurrent processing?

Yes, as long as the program clears the specific memory id after use.


import zabc to zabc from memory id l_mem_id.
 
export zabc from zabc to memory id l_mem_id.

FREE MEMORY ID l_mem_id.

Hope this helps.

Cheers,

Sougata.

Former Member
0 Kudos
670

I think I should read the help before I ask the question.

The memory is specified in the user session, so it is safe for concurrent processing.