Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Serious error in RPC

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Serious error in RPC
#13378
Posted by: Michael S 2010-10-14 21:30:01
Creat ethe following as a script

/*******************************************************************************
 Header line will point at the separator line ABOVE the column headers. Eg,
 +--------------------------------------------------------------------------...
 ! RAPPORTAVTALNUMMER ! ANTAL_EX_BEST_RAPP ! DAT_F諶EG_RAPUTSKR ! RAPPMOTT_K...
 +--------------------------------------------------------------------------...
*******************************************************************************/
extract_db2_columns_names:

ARG header_line

curr = header_line + 1
line = get_current_line(curr)
db2_columns = ','
DO WHILE line <> ' '
	PARSE VAR line next_column '!' line
	db2_columns = db2_columns',',next_column  /* extra comma here causes crash */
END	
/* Throw away the first comma */
db2_columns = SUBSTR(db2_columns,2)

RETURN db2_columns
and then run debug, check script for errors. RPC crashes. Note the comment above
about the extra comma
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,800.00 ·
 
 
¥489.00 ·
 
 
¥288.00 ·
 
 
¥908.00 ·
 
 
¥748.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0