Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 24 Aug 2004 @ 14:00:01 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Logon/Logon to Teradata via Cobol questions/problems
From:   Capp.Luckett


A). I am having a problem with the sample program logging on to our test Teradata.

B). Do I need to do this logon/logoff with every Cobol program?

C). If B is true, the DBA's need to come up with a Production Logon Userid/Password.

Ok. Some more ?'s on gettin this preprocessor to work.

1. I am getting the following error message when tryin to compile"

     45   EXEC SQL


              SPP4001 Error at line 46, column 27:
                   Logon variable LOGON-STRING does not conform to type VARCHAR

    47    END-EXEC.

My logon-string looks like:

     01   LOGON-STRING.
             05 FILLER         PIC S9(4) COMP-5.
             05 FILLER         PIC X(019)     VALUE

The error is referring that the LOGON-STRING is not VARCHAR. I put the COMP-5 in because IBM web site says that is COBOL equivalent to VARCHAR.

The orginal TD same program had:

     01   LOGON-STRING.
             49 FILLER         PIC S9(4) COMP VALUE len.
             49 FILLER         PIC X(len)     VALUE 'tdpid/user,pswd'.

I modified this to the following:

     01   LOGON-STRING.
             05 FILLER         PIC S9(4) COMP value 019.
             05 FILLER         PIC X(019)     VALUE 'TDPD/a868842,xxxxx'.

Capp Luckett

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016