How can I insert C structures that have character pointers into DBD file

Hello~
I am changing from a file system I made into DBD.
And I had no choice to convert structures that have character point members
to insert them into the DBD file
for examble,
If there is a structure as below
typedef struct
int IndexKey;
int groupID;
char* name;
char* pNum;
char* pAddr;
char* pMemo;
} TsomeRec;
I made a structure to convert as below
typedef struct
int IndexKey;
int groupID;
char name[MAX_NAME_LEN];
char pNum[MAX_NUM_LEN];
char pAddr[MAX_ADDR_LEN];
char pMemo[MAX_MEMO_LEN];
} TsomeRec2;
But, there are too many structures to convert.
So, I am seeking for the most efficient way to insert these structures into DBD files, considering Performance.
Frankly speaking, I'am not proficient.
please describe as specific as possible.
Thank you~

Hi,
Review the documentation section title Using C Structures with DB, in particular the subsection called C Structures with Pointers. It will explain the way to store structures that have pointers.
Regards,
Andrei

Similar Messages

  • How can I put the report generated by a program into a File?

    Hi all,
       How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible.
    I need to export this file to memory,How can I do that??
    Regards,
    Shashank.

    Hello Shashank,
    Please ignore my previous answer... Ofcourse it works...
    There are several ways to do this...
    two of them are
    1. List -> Save -> File and press enter..
        it will ask for the format, then path where to save it. Just give the path.
    2. Using function module 'GUI_DOWNLOAD'.
    I'm giving the example bellow which explains the usage of both GUI_UPLOAD and GUI_DOWNLOAD.
    To do this... you need to have folder with name 'TEST' and a .txt file in it with name 'test'. And contents of it are :
    TEST1             ,BOT 
    TEST2             ,BOT 
    TEST3             ,BUT 
    with spaces.
    REPORT zssr_bdc .
    DATA: BEGIN OF g_t_itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
          END OF g_t_itab.
    DATA: g_t_bdcdata TYPE TABLE OF bdcdata.
    DATA: path TYPE string,
          path1 type string.
    path = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test.txt'.
    path1 = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test1.txt'.
    *contents of test.txt    *
    *TEST1             ,BOT  *
    *TEST2             ,BOT  *
    *TEST3             ,BUT  *
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = path
      TABLES
        data_tab                      = g_t_itab.
    LOOP AT g_t_itab.
      WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       filename = path1
       filetype                      = 'ASC'
      TABLES
        data_tab                      = g_t_itab.
    Now you will get one .txt file with name 'TEST1.TXT' in the TEST folder.
    <b>REWARD POINTS IF IT IS HELPFUL</b>
    Regards
    Sasidhar Reddy Matli

  • How can I insert a a chart made with Numbers, into a Pages document?

    Hallo. How can I insert a document of "pages" made a chart with "numbers"?

    Open the numbers file, select the chart, tap copy. Opne the Pages document, tap and hold for the menu, tap paste.

  • How can I insert space between a bullet character and text?

    I imported my FrameMaker file and template into RoboHelp 7.
    After the conversion to RoboHelp, the bullet characters are too
    close to the paragraph text that follows. I was able to change the
    span's spacing in the Font dialog box's Spacing tab to expand the
    space. How can I apply this to all bullets in the topic?

    I am so dense... I re-read this thread.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=65&catid=680&threadid =1348980&enterthread=y
    AJ Owens suggested that we remove "Pre" from the User Defined
    HTML Tag field box in the Style Settings dialog box. When I
    initially accessed this box, I experimented with checking and
    unchecking the Convert Autonumber to HTML list box, but it never
    occurred to me to clear the User Defined HTML Tag field of "Pre".
    Now that I have cleared it, I am able to make changes in the Style
    Sheet Editor. (I can expand spacing so that I now see more space
    between the bulleted and numbered characters and the text that
    follows.)

  • How can I import formatted text without iWeb changing it into png files?

    I have a resume page on my site and just realized it has changed into png files.
    The formatting is time consuming and I'd rather not have to reformat in iWeb to keep this from happening. Any ideas?
    Thanks, David http://web.mac.com/phelpssculpture/iWeb
    ibook & imac   Mac OS X (10.4.8)  

    Kyn,
    I tried that and it does stay text, but for the life of me I can't get the formatting to be consistent. Everything looks fine in Text edit as well as iWeb, but once published whether to .mac or to a folder on my own computer, the formatting goes whacky, some things are out of alignment but I don't know why. I can see in the code that the spacing is wrong but I can't figure out why.
    David
    ibook & imac   Mac OS X (10.4.8)  

  • How can Imovie restabilise jumpy clips that have been converted?

    I have a new Sony camcorder which records in AVCHD (MTS files). I purchased a converter software (Aiessoft Platinum Converter for Mac) to convert to HD MOV files.
    I imported the files to Imovie and then stabilised the clips. The problem seems to arise when I export the clips as many of the clips appear "jumpy" when they are not viewed as such when in Imovie. I can help the problem by slowing down the speed in some of the clips although that is a laborious task and affects the overall movie.
    Has anyone else experienced this issue and how did you manage to resolve it? It seems to be more of an imovie issue than anything to do with the software I bought (I believe?) or the original movies which can be stablised.

    Hi
    And if the clips are not contiguous - Then You have to do as in all versions of iMovie from the very beginning.
    • Put the clips into one new project
    • Export this as full quality QuickTime movie
    • Import this new merged QT-clip into Your main project
    This is a way around that are very basic and used whenever more elaborated scenes are prepared - e.g. multiple text clips or when in need of adding several functions into it.
    Tedious - but it always been like this - in contrast to FinalCut.
    Yours Bengt W

  • HT1539 How can I watch digital downloads that have been downloaded to itunes through vudo?

    Can someone please tell me how I can watch digital movies in itunes thru vudo or flixster?

    What does this have to do with Apple or iTunes?
    Contact Vudu or Flixster and ask them.

  • How can I remove track numbers that have appeared in front of all of my song titles, since the new iTunes update of 12?

    Windows OS 7 
    iTunes 12
    Ever since the new update with iTunes 12, all of my song titles have a track number before them.
    Is there any easy way to remove this without having to go through my entire library?
    Any help would be appreciated.
    Thanks,
    Nancy

    turingtest2 wrote:
    OK, that was the wrong approach. What should have worked would have been the process described in Empty/corrupt iTunes library after upgrade/crash. No doubt your songs not only start with two leading digits, but have also lost the information regarding artist, album and their actual track numbers.
    Make a strong cup of coffee/tea/your favourite beverage and review this thread: Any software that can rebuild iTunes songs lost to Unknown Artist/ Unknown Album. It should be possible to restore a pre-upgrade version of your library, the reconnect it to the files (assuming they have been moved). Please feel free to ask questions.
    tt2
    I couldn't get that script program to open.   I'll just have to manually fix this mess. 
    Thanks!

  • How can I insert a line that extends from a word without it affecting the formatting of the WHOLE document?

    I am trying to create a simple form for people to print out and fill in. I want fields like 'Name' with a line extending from the word for people to write on. What should be the simplest of tasks has confounded me for HOURS. Inserting a line as a 'shape' or 'drawing with pen' just messes up the formatting of the whole document. I've used Pages 'Help' but it almost forced me to staple my eyelids to the carpet. Surely there is a SIMPLE way to do this. I even tried 'tricking' Pages by 'underlining' a row of spaces. It won't even allow you to do this because Pages is far more clever than a human.
    My cat is looking at me with increasing consternation.

    I would use a right-aligned tab with an underline leader.

  • How can I take off restrictions that have been set by another computer

    Blah blah

    Not that I am aware of, and if you manipulate the ipad to somehow do this, you would lose support from Apple.
    Again, speak with the person who put the restrictions on...
    If it's just Siri, is it not set to on in settings on your ipad?

  • How can i output backup set that generated by RMAN into a named pipe?

    Hi, buddy!
    Now i want to backup and restore oracle database or tablespaces with RMAN, and i need to use RMAN to write/read backup set into a named pipe that Operation System created. Is there any method to do it??
    Thank you for your attention!!

    Thank you very much!!
    I hava read this article you give and have a try according to it. When i start RMAN with pipe mode, i can send command in sqlplus and receive the result log from RMAN. But i can't take the RMAN to backup database into a pipe. for example, my sql statements is following that:
    please note line 2,"FORMAT 'ORA$RMAN_P1_OUT' ". It is error ,but that is what i want.
    so could you tell me how should i do? Or Rman does not support output the backup set to a pipe radically.
    SQL> DECLARE
    2 V_INPUT VARCHAR2(32767) := 'BACKUP DATABASE FORMAT 'ORA$RMAN_P1_OUT';';
    3 V_OUT NUMBER;
    4 BEGIN
    5 DBMS_PIPE.PACK_MESSAGE(V_INPUT);
    6 V_OUT := DBMS_PIPE.SEND_MESSAGE('ORA$RMAN_PI_IN');
    7 DBMS_OUTPUT.PUT_LINE(V_OUT);
    8 COMMIT;
    9 END;
    10 /

  • HT201272 I was cleaning my computer and after hours I erased by mistake all my itunes library. I need to know how can I get all AUDIOBOOKs that I purchased back into my computer. I don't see any label for audiobook purchased.I am getting my apps, books an

    I have all this podcasts that I choosen over the years in my ipod 2nd. generation and now  I have my newest ipod and trying to find podcasts in itunes , casuse I also have a new computer.some podcasts doesn;'t show ..how do i transfer all the information from my ipod to my computer?

    Restore the content from the backup of your computer.
    Audiobooks are not available for redownload.

  • How can I insert an image at the original resolution into a PDF using Acrobat Pro XI

    Got an image created in Photoshop at 300DPI 2480 pixels wide by xx high.  Saved as a TIFF.
    When I insert that image in my PDF (A4 210mm x 297mm) using Acrobat Pro XI via "Content Editing->Add Image" it appears smaller than the page width of the PDF, and I must manually resize the inserted image by dragging with my mouse.  
    Documentation says the image is inserted at the original image resolution, but it doesn't seem to be the case.
    Also tried creating another image in Photoshop using 210mm width @ 300 DPI (instead of 2480 pixels @ 300DPI), got the same results.
    Can anyone help?  Cheers.

    You should maybe take a step back. Nobody composes pages in Acrobat.

  • How to separate single photos from that have been put into an album

    I always import and categorize my photos into albums immediately. But I've accidentally imported photos without putting them into an album so they don't appear in the 'events' section. They do however appear in the 'all photos' section along with thousands of other photos. Is there a way to separate photos that are already in an album from those that are not yet in one so I can easily see which ones I haven't organized and sort them from there?

    IN Photos?
    File -> New Smart Album
    Album > is not -> Any

  • How can I insert values from table object into a regular table

    I have a table named "ITEM", an object "T_ITEM_OBJ", a table object "ITEM_TBL" and a stored procedure as below.
    CREATE TABLE ITEM
    ITEMID VARCHAR2(10) NOT NULL,
    PRODUCTID VARCHAR2(10) NOT NULL,
    LISTPRICE NUMBER(10,2),
    UNITCOST NUMBER(10,2),
    SUPPLIER INTEGER,
    STATUS VARCHAR2(2),
    ATTR1 VARCHAR2(80),
    ATTR2 VARCHAR2(80),
    ATTR3 VARCHAR2(80),
    ATTR4 VARCHAR2(80),
    ATTR5 VARCHAR2(80)
    TYPE T_ITEM_OBJ AS OBJECT
    ITEMID VARCHAR2(10),
    PRODUCTID VARCHAR2(10),
    LISTPRICE NUMBER(10,2),
    UNITCOST NUMBER(10,2),
    SUPPLIER INTEGER,
    STATUS VARCHAR2(2),
    ATTR1 VARCHAR2(80),
    ATTR2 VARCHAR2(80),
    ATTR3 VARCHAR2(80),
    ATTR4 VARCHAR2(80),
    ATTR5 VARCHAR2(80)
    TYPE ITEM_TBL AS TABLE OF T_ITEM_OBJ;
    PROCEDURE InsertItemByObj(p_item_tbl IN ITEM_TBL, p_Count OUT PLS_INTEGER);
    When I pass values from my java code through JDBC to this store procedure, how can I insert values from the "p_item_tbl" table object into ITEM table?
    In the stored procedure, I wrote the code as below but it doesn't work at all even I can see values if I use something like p_item_tbl(1).itemid. How can I fix the problem?
    INSERT INTO ITEM
    ITEMID,
    PRODUCTID,
    LISTPRICE,
    UNITCOST,
    STATUS,
    SUPPLIER,
    ATTR1
    ) SELECT ITEMID, PRODUCTID, LISTPRICE,
    UNITCOST, STATUS, SUPPLIER, ATTR1
    FROM TABLE( CAST(p_item_tbl AS ITEM_TBL) ) it
    WHERE it.ITEMID != NULL;
    COMMIT;
    Also, how can I count the number of objects in the table object p_item_tbl? and how can I use whole-loop or for-loop to retrieve values from the table object?
    Thanks.

    Sigh. I answered this in your other How can I convert table object into table record format?.
    Please do not open multiple threads. It just confuses people and makes the trreads hard to follow. Also, please remember we are not Oracle employees, we are all volunteers here. We answer questions if we can, when we can. There is no SLA so please be patient.
    Thank you for your future co-operation.
    Cheers, APC

Maybe you are looking for

  • How to back up iPhone to iCloud

    My iPhone is prompting me to back up to the iCloud.  Plug it in, turn on wifi and lock it.  How do I lock it?

  • Field "GR Non-valuated" in tab "Goods receipt" of the production order

    Hi, When creating a production order, the field "GR Non-valuated" in tab "Goods receipt" is checked by default, due to my assessment customizing. This field indicates to the system that it should not create any accounting document, whereas I would li

  • Oracle 9i External Tables

    Helllo Everyone. I am new to external tables concept and I have only used using flat files. Is there a complete reference on on external tables somewhere? Also, instead of .csv or text based datafiles, can I use XML as data source for these external

  • Hide locked users in UWL people search

    Hi, I would like to hide the locked users from displaying in the UWL people search results for example while selecting an assignee during Forward task or selecting a nominee during Substitution. Based on the SDN search does not looks like we can modi

  • Best settings for xtremegam

    Is there any webpage that gives the best settings for each of the modes for specific purposes? For example, I use the HD555s and I mostly play cs .6. What would be the best settings for .6? Especially for the best positional sound?