× 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.



Should probably start a new thread on this, but yes,probably CCSID. Start
a new thread with the info on the files you're using. :)

On Tue, Apr 10, 2018 at 10:09 AM, Gerald Magnuson <
gmagqcy.midrange@xxxxxxxxx> wrote:

thanks Brad...
I found a good simple start at
https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-
nodejs/

however!!!!!! I think I can't get my script running....
(could it be my file is a wrong ccsid???? the article doesn't say.....)


node /home/gmagnuson/sample.js

/home/gmagnuson/sample.js:1

(function (exports, require, module, __filename, __dirname) {
���@����@~@�������M}����}]^
^



SyntaxError: Invalid or unexpected token

at createScript (vm.js:56:10)

at Object.runInThisContext (vm.js:97:10)




On Tue, Apr 10, 2018 at 9:52 AM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

On Tue, Apr 10, 2018 at 9:24 AM, Gerald Magnuson <
gmagqcy.midrange@xxxxxxxxx
wrote:

Is there a redbook or something that details the how to use nodejs with
the
express server?
we have a hard time trying to get buy in using the IBMi for a
api/rest/soap
server....



Gerald,

There are many many many resources for using express online.. it's the
same
as on any other platform as the IBM i. Aaron Bartell has also written
many articles on it.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.