DBFRSUP
DBFRSUP is the Run Startup function of DBCHCL.
DBFRSUP sends a request to the Teradata Database to execute the Startup Request stored
on the Teradata Database.
How It Works
The startup request is a Teradata SQL request stored on the Teradata Database by means
of a CREATE USER or MODIFY USER statement that contains a STARTUP clause.
DBFRSUP performs the following functions:
If the session is active, awaits completion of the active request
If the previous request was a CON and it was not successful, receives an error indicating
“unable to initiate because session is not logged on”
Note: Upon receiving this return error, the application must invoke DBFDSC.
If the application has requested option updates, performs option set/validation logic
Ensures that request buffer is large enough.
Builds request in request buffer, as follows:
Request parcel in either Record, Field, or Indicator Mode based on the setting of
the Response Mode
Input Data parcel in either Record or Indicator Mode based on setting of Using Presence
Bits, and
Resp or KeepResp parcel based on Keep Response setting
Then DBFRSUP sends a request to the MTDP:
If not successful, cleanups and returns to the application
Sets Open Request, and so on, and returns to caller