NWSMGetFirstName

Returns the first data set name contained in NWSM_DATA_SET_NAME_LIST or NWSM_SELECTION_LIST.

Syntax

  #include <smsutapi.h> 
   
  CCODE NWSMGetFirstName ( 
     void SM_HUGE                *buffer, 
     NWSM_DATA_SET_NAME SM_HUGE  *name, 
     SMS_HANDLE SM_HUGE         *handle);
  

Parameters

buffer

(IN) Points to the NWSM_DATA_SET_NAME_LIST or NWSM_SELECTION_LIST structure plus its accompanying name list.

name

(OUT) Points to the data set name.

handle

(OUT) Points to the name handle used for all subsequent get name functions.

Return Values

The following table lists the return values associated with the function.

0x00000000

Successful

0xFFFBFFFC

NWSMUT_NO_MORE_NAMES

0xFFFBFFFD

NWSMUT_INVALID_PARAMETER

0xFFFBFFFB

NWSMUT_OUT_OF_MEMORY

Remarks

NWSMGetFirstName returns the first name contained in buffer. To get the next name in the list, call NWSMGetNextName. To end the retrieval of data set names, call NWSMCloseName.

buffer could contain a list of terminal path names, full path names, or a single TSA defined object.

If NWSMGetFirstName returns NWSMUT_NO_MORE_NAMES, do not call NWSMCloseName.

If the creator name space was requested when buffer was built, name contains the data set name as it appears under that name space.

See Also

NWSMCloseName, NWSMGetNextName