/
STEP 7 Make INSERT statements

STEP 7 Make INSERT statements

Next, we convert the info in DATA.txt into INSERT statments

 

Replace '[' with :

INSERT INTO M70_SDR_TRANSIT(SDR_NUMBER_NUM,SDR_TEXT) VALUES(TO_CHAR(SYSTIMESTAMP,'HH24MISSFF6'),UPPER('

 and

Replace ']' with  :  '));

 

What we're going to do here is dump the data into M70.

To satisfy the minimum integrity requirements for the table we will,

  • provide a temporary SDR-number by using a numeric timestamp

  • drop the rest of the data-string into the 4000 character SDR text field

Note : the FAA descriptive text never exceeds 2000 chars, so theres always plenty of room to drop it all here.

Now our data file look should look somewhat like this :

 

Related content

STEP 6 EXCEL Processing
STEP 6 EXCEL Processing
More like this
STEP 31 SDR INSERT ROUTINES
STEP 31 SDR INSERT ROUTINES
More like this
STEP 9 Parsing the Data
STEP 9 Parsing the Data
More like this
STEP 10 Allocating Standard CAWIS format SDR numbers
STEP 10 Allocating Standard CAWIS format SDR numbers
More like this
STEP 30 SDR TEXT
STEP 30 SDR TEXT
More like this
Importing FAA "SDR" Data to CAWIS
Importing FAA "SDR" Data to CAWIS
More like this