× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

I'm trying to run this statement in AS400 and I keep getting an error,
specific with the char(10). Does anyone know what I need to change the
char(10) to work?

SELECT 
   'while [ "$tryexport" = "true" ]; do',char(10),
   '  eval ${SIEBEL_HOME}/bin/dataexp /u &3 /p &4 /c &5 /d &2 /f
${DATA}/'||NAME||'.dat /i ${DATA}/'||NAME||'.inp /q 1000 /l
${DATA}/'||NAME||'_exp.log >> nul',char(10),
   '  validate $? '||NAME,char(10),
   '  if [ "$tryexport" = "false" ]; then',char(10),
   '     tryexport=true',char(10),
   '     break',char(10),
   '  fi',char(10)||
   'done',char(10)
FROM 
   &2.S_TABLE

Your assistance is highly appreciated!
Thanks,
Caroline


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.