Check out ReadOnly

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
sotis
Posts: 16
Joined: Thu Sep 16, 2021 11:37 pm

Check out ReadOnly

Post by sotis »

Hello,

Can you tell me the difference between check out and check out Readonly?

According to Lansa documentation:
Check out is used to copy the definition of an object that is currently stored in the LANSA for i Master Repository into a Visual LANSA Slave Repository. You can check out an object as Read-only or for Update. In order to check out an object for update, you must have appropriate authority to access the object.
So if I understand correctly Check out updates the definition of the object to every Visual Lansa Slave repository while checkout read only updates the object only where it was requested ??

best,
Sotiris
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Check out ReadOnly

Post by Dino »

Hi Sotis,

When you use Visual LANSA as your IDE in windows,
and your IBM as your MASTER development repository,
all the source code of your application and repository definitions are in the IBM.

If you want to be able to SEE that in Visual LANSA, you need to check out what you need
from the IBM repository to your PC.

Check out readonly, will bring stuff to your pc, but it will be only to allow you to compile it
locally, run it for test, or maybe just use it as part of other program, or coppy, etc.

You cannot make changes to it and you cannot send those changes back to the IBM. If you want to
make changes to those components, you need first to check out with UPDATE.
Make the changes, then you can perform a CHECKIN to send those components back to the IBM.

kind regards
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Check out ReadOnly

Post by atostaine »

If you are partition security officer you can edit any component without checking out for updates.

Art
Art Tostaine
sotis
Posts: 16
Joined: Thu Sep 16, 2021 11:37 pm

Re: Check out ReadOnly

Post by sotis »

Hello,

thank you for your replies.

However there is probably something that I am missing here because in my setup (LANSA IDE WINDOWS - IBM MASTER), when the object (e.g. a function) is checked out read only, I can make changes to it, save it and send it via check in. The only difference that I notice is that after check out readonly the Task of the object (function/process) is empty while after check out (update) the task of the object is set to whatever task is defined in the LANSA IDE.

best,
Sotiris
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Check out ReadOnly

Post by atostaine »

I would say either you are partition security officer or the partition details aren't configured properly to turn on task tracking.
Art Tostaine
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Check out ReadOnly

Post by Dino »

I agree with Art.

Special abilities come with special powers.

You should not be using dcxpgmlib or pcxuser for example as users. That would be like programming using qsecofr.

You can have your own user in the IBM, with some authorities like *JOBCTL, and the library list similar to dcxpgmlib's jobd,
Then if you are using task control, you need to configure that correctly at partition definition level,
https://docs.lansa.com/15/en/lansa010/i ... 7_0025.htm

Then you need to have tasks created and have your user authorized to the task that you want to use.
Post Reply