FSV-C-change-server

Changes the currently accessed server.

Syntax:

When the fsview has been initialized using FSV-C it uses the following syntax:

call FSV-C-change-server using      l-server-name
                                    l-user-name
                                    l-server-password

When the fsview has been initialized using FSC-C-long-password it uses the following syntax:

call FSV-C-change-server using      l2-server-name
                                    l2-server-userid
                                    l2-server-password
                                    l2-user-name-length
                                    l2-user-password-length

Parameters:

Parameters when fsview has been initialized using FSV-C:

l-server-name
pic x(20).
l-user-name
pic x(20).
l-server-password
pic x(20).

Parameters when fsview has been initialized using FSV-C-long-password:

l2-server-name
pic x(20).
l2-server-userid
pic x(100).
l2-server-password
pic x(100).
l2-user-name-length
pic x(2) comp-x.
l2-user-password-length
pic x(2) comp-x.

On Entry:

When the fsview has been initialized using FSV-C:

l-server-name
The name of the server
l-user-name
The user ID
l-server-password
The password associated with the user ID

Parameters to use when FSV-C-long-password has been used to initialize the fsview:

l2-server-name
The name of the server
l2-server-userid
The server user ID
l2-server-password
The long password associated with the user ID
l2-user-name-length
Username length
l2-user-password-length
User password length

On Exit:

None.

Comments:

You need to set l-user-name and l-server-password only if you have Fileshare

security enabled.

The success of the call can be checked by examining RETURN-CODE. In the event of a password error, the error message Access Denied is returned.