logon failure in bteq: CLI error: CLI0282 REQUESTED TDP UNAVAILABLE

UDA
Enthusiast

logon failure in bteq: CLI error: CLI0282 REQUESTED TDP UNAVAILABLE

Hi,
I use logon using .LOGON TDP1/userin,password; in bteq. When I run this bteq thru jcl in mainframe, the job runs successfully.
But When I run this same logon script using REXX, the logon failed :( saying....
*** CLI error: CLI0282 REQUESTED TDP UNAVAILABLE
*** Return code from CLI is: 282
*** Error: Logon failed.
*** Total elapsed time was 0.01 seconds.

When I checked Call Level Interface messages, it said,

Explanation: The TDPid specified is valid but the
requested TDP is not active.
Remedy: Request a running TDP or start the needed
TDP and resubmit the job.

Should I include any more library...Please help me out...

Thanks and regards,
Yuvaraj manohar.