PCC-F-02044, CMD-LINE:  Illegal or out of range value for option

Good day,
I very new to Pro*C and its compiler, i was tasked to recompile a program from a previous developer and got stuck with the above mentioned problem.
The command i'm using to compile the program is: proc xxx.pc
This returns the illegal or out of range value error
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
#include <sqlda.h>
#include <sqlcpr.h>
#include <sqlca.h>
#include <stddef.h>
using namespace std;
  char myfile[60];     
  char puk [][];
  int last_col = 0;
  int last_row = 0;
  int line_nr = 0;
  string line = ""; 
int main(int argc, char *argv[])
    if (argc != 2)
       return(1);
  ifstream myfile;
  myfile.open (argv[1],ios::in);
  if (myfile.is_open())
    while (! myfile.eof() )
    //while(getline(myfile,line))
      getline (myfile,line);
      line_nr++; //counting number of lines
      line = trim(line); //remove whitespaces
      if (line == "\r" or line.length()  == 0) {
         continue;  //ignore blank lines
       if (line_nr == 1) {        
          last_col = 1;
          last_row = 0;
          puk [last_row][last_col] = line;          
       } else if (line_nr > 1 && line.substr(1,3) != 'OOF') {          
          last_col = last_col + 1;
          puk [last_row][last_col] = line;          
       } else {     
         last_row = last_row + 1;
          puk [last_row][1] = line;                    
    myfile.close();
    line_nr = 0;
  return 0;
         Any assistance will be appreciated.
Regards,

My pcscfg.cfg file is set as follows:
sys_include=(/usr/include/c++/4.1.1/iostream,/usr/include/c++/4.1.1/backward/iostream.h,/usr/include/c++/4.1.1/fstream,/usr/include/c++/4.1.1/backward/fstrea
m.h,/usr/bin/strings,/usr/include/string.h,/usr/include/strings.h,/usr/include/stdio.h,/usr/lib/syslinux/com32/include/stdio.h,/oracle/client/9.2.0/precomp/p
ublic/sqlda.h,/oracle/client/9.2.0/precomp/public/sqlcpr.h,/oracle/client/9.2.0/precomp/public/sqlca.h,/usr/include/linux/stddef.h,/usr/lib/gcc/x86_64-redhat
-linux/4.1.1/include/stddef.h,/usr/lib/syslinux/com32/include/stddef.h,/usr/lib/syslinux/com32/include/bitsize/stddef.h,/usr/include,/usr/lib/gcc-lib/i386-re
dhat-linux/2.96/include,/oracle/app/oracle/client/precomp/public,/user/include/g++-3)
ltype=short

Similar Messages

  • DataMgr.c,Line:9529,Index out of range

    I think this the correct forum based on a search for "DataMg" errors.  I was deleting some e-mails off m Tungsten E.  Deleted 12 or more of them without a problem.  I went back to the screen that listed all of the e-mails and immediately a Fatal Error popped up and it has been frozen on the screen ever since.  it says, as the subject of this post reads, "DataMgr.c,Line:9529,Index out of range"  I can't get it to power down.  I can't get the PC to jar it out of this frozen state by selecting something in the HotSync family.  I'm at a loss.  Would greatly appreciate any help.
    Post relates to: Tungsten E

    Are you sure you are performing the hard reset correctly?
    A hard reset wipes everything off your palm. A hard reset is performed by holding down the call end button while sticking something thin (your stylus, paper clip) into the back reset hole of your device. Keep your hand on the end button while you release the paper clip from the reset hole. The screen will now say "Palm Powered." Take your hand off the end button. You will now see a screen in 5 languages prompting you to erase all data from the palm. The screen will say "erase all data? Yes - up, no - down" and you need to click on the up arrow (silver button on the 5 way navigator on the bottom of the palm). This will erase all the info from your device.
    Post relates to: Tungsten E2

  • The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

    I am trying to insert records into a temporary table with date values concatenated with other string values  into one large string value.I am getting the following error:
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    -My code below
    Declare
           @hdrLOCAL char(255),                                                       
        @CR char(255),                                                             
        @BLDCHKDT DATETIME,                                                         
        @BLDCHTIME DATETIME,                                                         
        @hdrline int
        SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
        SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
        SELECT @hdrline =1
        SELECT
                @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
                -- convert(varchar,getdate(),15)
                @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
                FROM STATS.dbo.DD10500 T762
                LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
                        T762.INDXLONG = T756.INDXLONG
                        AND T756.INCLPYMT = 1
                WHERE (T756.INCLPYMT = 1)
                    AND (T762.DDAMTDLR <> 0)
      Create TABLE [dbo].[##DD10200B](
        [INDXLONG] [int] NOT NULL,
        [DDLINE] [varchar](8000) NOT NULL,
        [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
            VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    The Best thing in Life is Life

    Since the Variable
    BLDCHKDT and BLDCHTIME are of type date time why are you trying to assign it a value
    of type varchar
    and the format 105 gives you dd-mm-yyyy but SQL server takes the default format as mm-dd-yyyy so the error occurs for all dates that
    are greater than 12
    try the below code
    Declare
    @hdrLOCAL char(255),
    @CR char(255),
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    @hdrline int
    SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
    SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
    SELECT @hdrline =1
    SELECT
    @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
    -- convert(varchar,getdate(),15)
    @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
    FROM STATS.dbo.DD10500 T762
    LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
    T762.INDXLONG = T756.INDXLONG
    AND T756.INCLPYMT = 1
    WHERE (T756.INCLPYMT = 1)
    AND (T762.DDAMTDLR <> 0)
    Create TABLE [dbo].[##DD10200B](
    [INDXLONG] [int] NOT NULL,
    [DDLINE] [varchar](8000) NOT NULL,
    [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
    VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    the only change done is 
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    Surender Singh Bhadauria
    My Blog

  • The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.

    Below select statement results in "The conversion of a nvarchar data type to a datetime data type resulted in an out of range value"   error. By the way Terms
    field's data type is nvarchar
     SELECT * from INVOICE
    where convert(datetime,Terms) 
    BETWEEN
    '01/01/14'
    and
    '01/30/15' 

    If you can't use TRY_CONVERT (It's only available in 2012+) You should be able to validate the data with something like this (based on your example date formats):
    DECLARE @notDate TABLE (Terms NVARCHAR(10))
    INSERT INTO @notDate (Terms) VALUES
    ('01/01/14'),('02/29/14'),('01/32/15'),('13/13/14'),('13/3/14'),('13-13/14'),('02/29/12'),('02/29/13')
    SELECT *,
    CASE WHEN (LEN(Terms) - 2) <> LEN(REPLACE(Terms,'/','')) OR LEN(Terms) <> 8 THEN 'Bad Form'
    WHEN LEFT(Terms,2) > 12 THEN 'Bad Month'
    WHEN LEFT(Terms,2) IN (9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '30' THEN 'Bad Day'
    WHEN LEFT(Terms,2) = 2 AND LEFT(RIGHT(Terms,5),2) > (28 + CASE WHEN (2000+RIGHT(Terms,2)) % 400 = 0 THEN 1 WHEN (2000+RIGHT(Terms,2)) % 100 = 0 THEN 0 WHEN (2000+RIGHT(Terms,2)) % 4 = 0 THEN 1 ELSE 0 END) THEN 'Bad Day'
    WHEN LEFT(Terms,2) NOT IN (2,9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '31' THEN 'Bad Day'
    END
    FROM @notDate
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Data truncation: Out of range value adjusted for column

    I encountered the following error while working thru "Creating Your First LiveCyle ES Application" and have not been able to find a solution. Any assistance would be greatly appreciated.
    javax.ejb.TransactionRolledbackLocalException: Data truncation: Out of range value adjusted for column 'loanamount' at row 1; CausedByException is:
    Data truncation: Out of range value adjusted for column 'loanamount' at row 1
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:247)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy284.writeObject(Unknown Source)

    hmm, i have sloved the error already. I have make my longtitude double(40,20).

  • Z420 bios error 110 out of memory space for option roms

    Hi,
    I want to attach a SCSI RAID drive to the PC to copy the contents off onto a new drive, but when I do I receive this message:
    10—Out of memory space for option ROMs   Option ROM for a device could not run because of memory constraints.
    I know that under the Setup Menu/Advanced/Power On Options you are supposed to set the ACPI/USB Buffers @ Top of Memory setting to Enable, but unfortunately my version of BIOS doesn't contain this option.
    Can anyone tell me what I can turn off in my system to allow it to operate with the ATTO card?
    I also have a NVIDIA K4000 card installed and an AJA Io Express PCI card installed.  These both work fine without the ATTO card inserted into the machine.
    Thanks in advance!

    Hi,
    You might get better assistance on the HP Enterprise Business Forum since you have a business class PC.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How to find out the ASCII Values for Spanish character

    Hi,
    I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
    Kindly guide me for below.
    To filter the Records which contains spanish characters?
    To get the ASCII Values for the particular column?
    E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
    But I want to find the ASCII Values for the particular column value. Ie. name.
    E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
    Kindly do the needful help / Guidance on this.
    Thanks,
    Orahar

    To expand on what I said in my first post, you want to do something along these lines:
    with t (thename) as
      select 'Suresh' from dual
    select thename
         , substr(TheName, level, 1)
         , ascii(substr(thename, level))
      from t
    connect by level <= length(thename);The output of the above query is:
    THENAM S ASCII(SUBSTR(THENAME,LEVEL))
    Suresh S                           83
    Suresh u                          117
    Suresh r                          114
    Suresh e                          101
    Suresh s                          115
    Suresh h                          104
    6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
    Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
    HTH,
    John.

  • How to find out profile optoins value for user from database?

    I have PA debug enabled for a particular user in my ebusiness suite environment. I need to find out for what user is it enabled.
    FND_PROFILE_OPTIONS shows that its enabled for user and responsibility level. But I am not able to find out for which user/responsibility is it enabled, as this only shows flags.
    Can someone please tell me what table/view I need to check for that.

    Hi;
    Please see:
    How To Check If a Profile Option Is Set In Oracle Application [ID 470102.1]
    How to list E-Business Suite Profile Option values for all levels using SQLPlus [ID 201945.1]
    How to Search all of the Profile Options for a Specific Value [ID 282382.1]
    Regard
    Helios

  • Set out of range value to a time datatype in sql server 2008

    Hi,
    I have a variable set to time datatype in SQL server 2008. I need to set a value more than 24 hrs to that. Is there any way? I get an error like Conversion failed when converting date and/or time from character string. .Below is my scenario
    declare @QuietBeginTime time
    SET @QuietBeginTime  = (SELECT value FROM #RCQD where id=8)
    ---------This has a value like '24:45'
    Print @QuietBeginTime
    Please help me.
    Deepa

    declare @QuietBeginTime time
    SET @QuietBeginTime  = (SELECT value FROM #RCQD where id=8)
    ---------This has a value like '24:45'
    Print @QuietBeginTime
    Above is my scenario. Your example is fine, But main thing is i want to set a value to a variable, That
    i am unable to do
    Deepa

  • Task Line Numbers Move Out of Order When Adding Resource to a Task

    I am using MS Project 2013 and we are in the process of setting up Project Server 2013. 
    When I add a resource to a task and close the summary task and re-open the task is moved to the bottom of that section and the line numbers are out of order.
    For example line number 382 is the third task under the summary task.  When I add a resource, hide the subtasks and then expand the subtasks line number 382 is now at the bottom after line 389.  The line numbers then go 381, 383, 384... until 389
    then 382 is after 389.
    I want to keep the tasks in sequential order.
    Has anyone seen this problem before?  I have done extensive research online and cannot seem to find any one with a similar issue.
    Thank you! :)

    Hi Dnbree,
    Do you have any filters applied to the view in Project Pro? Try to change view and check if you experience the same issue.
    Also check if the view uses a sorting in the view tab of the ribbon, such as sort by resources.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Blackberry - ref member out or range' error.

    Hi everyone,
    I'm porting my app to Blackberry and up until last week everything was working perfectly.
    In the last week I've probably made a few hundred changes and now my app won't run on the device, it gives a 'ref member out or range' error for a specific class.
    it seems there are a few others out there with the same error but there is no solution posted. It seems to compile fine and installs on the phone but when deleting the app it deletes much quicker than a working app.
    Anyone have this problem before?
    DAN

    It would be good to provide the stacktrace, it's the fastest way to identify at which line your program failed at. I believe calvino_ind has somehow answered you though.
    Just FYI, you don't have to do 'String str2 = new String("ay");'. The statement creates a new String instance every time it is executed. Number of instances can be created needlessly, if it happens to be in a loop, for instance.
    Instead, do this:
    String str2 = "ay";
    yc

  • Enumerated Out-Of-Range Detection

    I'd like to solicit opinions and ideas on a LabVIEW technical issue. The objective is to have a subvi detect when it receives an out of range value on an input that is an enumerated type control. Of course one way is to change the enumerated type so that the first and last items are named Underrange and Overrange, and handle these cases. But I am looking for a way to do it without adding items to the enumerated type. The attached LLB illustrates what I am trying to do. If the Numeric input on the top level VI is set to a value of 22, the subVI runs with a value of 16. Note that the subVI has a property for Out of Range Action that is set to Ignore, but the value is still coerced.
    The LLB is in LabVIEW 7.1.  In LabVIEW 8.2 the behavior is different. There is apparently a bug in LabVIEW 8.2 that allows the Number of Items to change if an overrange value is input.
    Allen
    Attachments:
    Enumeration Range Demo.llb ‏41 KB

    There is no built-in elegant method since the numeric->enum coercion is something that obviously happens automatically. If you provide a subVI that has an enum input you have no way of knowing that somebody wired an integer to that input unless you use the "Underrange" and "Overrange" enum values to deal with that situation. From your subVI's perspective all that you see in your subVI is the enum. There's no way for you to know that the enum value was chosen that way because somebody wired a constant of, say, -1 to your subVI's enum input. The programmer could just as well have had a number/string->enum conversion routine that actually chose those enum values.
    The real question is whether or not you should be providing an "Underrange" or "Overrange" enum value. That depends on how your subVI gets used. Normally I don't create such values, and I would suspect most programmers also do not. The only time I do it is when I know the subVI is used in situations where the value would likely be coming from an integer or a string value like, when it gets read from a file. In the latter example I use a string->enum conversion VI, but I make sure that the enum has an "undefined" value in the case when I get an empty string or an incorrect string.
    As a side note and follow-up to my previous message, it's interesting to note that even though the "Out of Range" action can be set for an enum via a property node, that section does not exist on the property page for the enum (and sensibly so). Perhaps that property shouldn't even be selectable for an enum.

  • Varchar to datetime conversion out-of-range

    I'm importing data from CSV and I get the following conversion datetime error:
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    The statement has been terminated.
    I'm using the following statement to convert the datetime from varchar(100) to datetime:
    CONVERT (datetime,TimeIndex,103)
    The date in the CSV is in the following format:
    2015-01-31 23:58:19
    Any ideas what could be causing this?
    Thanks in advance
    Adam

    This could be because of british/American date formats.
    Try importing the following dates: -
    2015-01-01
    2015-01-02
    2015-01-12
    ... and see if that works, then try importing 2015-01-13 and see if that works
    Please click "Mark As Answer" if my post helped. Tony C.

  • Importing 59.94 fps  - edl from Premiere CC  - error - Frame index out of range

    I have a Adobe Premiere project with a 5k 59.94 sequence.
    The sequence has two R3d 5K clips both interpreted at 59.94.
    I've exported an edl for the sequence and want to import it into SpeedGrade.
    I have adjusted my preferences in SpeedGrade for 59.94.
    - playback at 59.94
    - base frame rate is set at 59.94, with "both edits and footage have the current base FPS as set above or in the EDL itself"
    I import the EDL and the reels are not loaded. I select "Load from desktop", and the reels still do not load.
    I deselect "don't replace loaded reels" and manually drag the two clips and replace the two reels.
    I can now see the clips in the timeline, but have an error message in my display - "Frame index out of range".
    I'm guessing this could also a be a Premiere CC export problem, but not sure. The sequence is just cuts, no audio.
    Here's the edl info:
    TITLE: sg_test_edit
    FCM: NON-DROP FRAME
    001 A002C035 V C 17:40:23:54 17:40:38:41 00:00:00:00 00:00:14:47
    * FROM CLIP NAME: A002_C035_05094K_001.R3D
    002 A002C013 V C 16:46:38:36 16:46:52:24 00:00:14:47 00:00:28:35
    * FROM CLIP NAME: A002_C013_0509UM_001.R3D
    Trying to nail down a workflow for 4k 60p, and not feeling very encouraged.
    Any suggestions?
    Thanks

    I've had a similar frame-out-of-range problem for the last week or so in Sg ... import an edl, and even if I've already set the "base" in Prefs, and for that project BEFORE re-loading the reels, I ALWAYS get the f-o-o-r screen instead of my footage. After going back and forth setting those things to the same thing again and maybe again, I'll finally get where it all loads & runs. Save the project.
    Come back by opening it again later ... and GET THAT DAMN FRAME-OUT-OF-RANGE thing again and have to ... again ... spend 10-15 minutes setting and re-setting all those same DAMN things until it finally decides to accept my footage.
    I've only ... in the last two weeks ... TWICE opened a project I'd previously had working and graded on ... that simply loaded. Every other time I've had to waste time re-setting/re-setting/re-setting/close-open-re-set/re-setting & etc. until it finally works.
    No help from anyone about why this is now happening, how to stop it, or fix it quickly. Damn dumb behavior.
    Neil

  • Handling Out-of-Range and Overflow

    How to deal with Out-of-Range and Overflow?
    Suppose I have a SQL table with one column of datatype “tinyint”.
    tinyint’s range is 0-255.
    Table:
    create table xyz
    (     userid tinyint not null auto_increment,
    After inserting 256 rows, we cannot insert another row .
    When MySQL stores a value in a numeric column that is outside the permissible range of the column data type, MySQL rejects the out-of-range value with an error, and the insert fails.
    How to deal with this situation ?
    Obviously we can use some data type with very big range for e.g. bigint .. but still every data type got some maximum limit. So, there must be a way through which we can deal with this situation.

    It appears that you are referring to MySQL, not Oracle. If you have a MySQL-specific question, you most likely want to post the question in the MySQL forum.
    In general, though, what does it mean to you to "handle" the error? The insert throws an exception, your code can catch the exception. It can log the exception. It could, potentially, re-try the insert with a different numeric value that does not cause the failure. Is that what you mean by "handle"?
    When you're designing the data model, you need to pick data types whose ranges are large enough to accommodate the data you will ultimately insert. If you want to be able to store values larger than 256, you would need to choose a data type for the column that can handle numbers that large. That means that when you are creating the data model, you need to know, realistically, how many rows each table will have and what the maximum value in any particular column will be. And you need to set the data types appropriately.
    Justin

Maybe you are looking for