Home » Developer & Programmer » Precompilers, OCI & OCCI » Cannot get one command line parameter from a response file
Cannot get one command line parameter from a response file [message #636091] Thu, 16 April 2015 09:43
orHooha
Messages: 8
Registered: April 2015
Junior Member

Hi,

In a Pro*C Linux executable, there are several command line parameters, which we're trying to populate from a response file, thus:


procsample -o whatthe.lis id/pw < /apps/responsefiles/procsample.dat


The very first parameter, is a sequence number. If you run it manually (i.e., without the response file), it will just take a null, i.e. a carriage return, and then you get the prompt for the next parameter. Everything works fine.

But if you specify the carriage return in the response file - or a number; or a number followed by a carriage return; or several carriage returns - it keeps saying that the sequence number is invalid. Eventually, it gets to the end of the file, seems to get past the first parameter, but then complains that the second parameter is missing.


How come it takes the null in manual mode, but it won't take it, from the response file?

Here is the code for first two input prompts:



input(seq_no_var,TM_NLS_Get("0000","Run Sequence Number: "),26,NUM);
if ( !*seq_no_var ) goto ask_start;
tmstrcpy(rpt_one_up_no,seq_no_var);
tmstrcpy(valid_ind,_TMC("N"));
....
....


ask_start:
input(period_start,TM_NLS_Get("0001","Starting date (DD-MON-YYYY): "),12,ALPHA);
if ( *period_start ) goto period_start;
tmstrcpy(parm_no,_TMC("01"));
...
...
...

skip_period_start:
tmstrcpy(period_start,ask_period_start);
dateconv(period_start);


Previous Topic: OCI and Threaded applications
Next Topic: Oracle OCI programming returning null value into define variable
Goto Forum:
  


Current Time: Thu Mar 28 15:29:52 CDT 2024