Set Cursor (40)

Top  Previous  Next

The Set Cursor function is used to set the position of the cursor within the host presentation space. Before using the Set Cursor function, a workstation application must be connected to the host presentation space.

 

3270

5250

Yes

Yes

 

 

Prerequisite Calls

 

Connect Presentation Space (1)

 

 

Call Parameters

 

 

Standard Interface

Enhanced Interface

Function Number

Must be 40

 

Data String

NA

 

Length

NA

 

PS Position

Desired cursor position in the connected host presentation space

 

 

 

Return Parameters

 

Return Code

Explanation

0

Cursor was successfully located at the specified position.

1

Your program is not connected to a host session.

4

The session is busy.

7

A cursor location less than 1 or greater than the size of the connected host presentation space was specified.

9

A system error occurred.

 

 

Remarks

 

DBCS Only: If the specified cursor is the second byte of the double-byte character, the cursor moves to the first byte of the character and an error code is not returned.