AS400 Web applications with RPG

335 pts.
Tags:
AS/400
ILE RPG
SaaS
I have a book entitled (e-RPG Building AS/400 Web appliations with RPG) by Bradley V. Stone. The book comes with a CD of source code. My question is: Where do I put the source code on the AS/400. The CD contains: Binder Language Copy Source DDS source HTML source Module source RPG source I put the binder language in source file qbndsrc. The DDS in qddssrc. The RPG in qrpglesrc. The copy source in qsrvsrc. Where does the HTML source, Module source go?  Also, did I put the other source in the right source physical files? 

Answer Wiki

Thanks. We'll let you know when a new response is added.

There is not a right or wrong place to put it.
It could all go into the same source file, but for ease of use most shops create seperate files.
QRPGSRC and/or QRPGLESRC
QDDSSRC
QTXTSRC
QCLSRC (Sometimes QCLPSRC or QCLLESRC)
QMODSRC
QMNUSRC
QSRVSRC
QCPYSRC
etc.

It is up to yo to set your standards.

The only thing that matters is where you put the compiled objects. This library has to declared to the HTTP server configuration. The specifications for doing that are shown in Bradley’s book. I used the same book along with the “API’s @ Work” to do an E-RPG project. It works very nicely.

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • 65GTO
    What goes in QSRVSRC?
    335 pointsBadges:
    report
  • 65GTO
    Here's what I have in qcpysrc: File . . . . . . QCPYSRC Library . . . . AS400CGI Position to . . . . . Type options, press Enter. 2=Edit 3=Copy 4=Delete 5=Display 6=Print 7=Rename 8=Display description 9=Save 13=Change text 14=Compile 15=Create module... Opt Member Type Text P.CONVERT RPGLE Source for #CtoN (character to numeric) P.HTTPSTD RPGLE Source for #WrStout, #RdStin, #GetEnv P.ITEMLIST RPGLE Source for #WrStout, #GetEnvQS, #CvtDB P.LISTCARS RPGLE Source for #CvtDB ------------------------------------------------------------------------------------------------------------------- Is the type correct (RPGLE)? Here's some of the code: D #WrStout PR D PR_WrStout 1024 VALUE * D #GetEnvQS PR D PR_EnvRec 1024 D PR_EnvLen 9B 0 * D #CvtDB PR D PR_RcvRec 1024 VALUE D PR_RcvLen 9B 0 D PR_CvtStat 9B 0 D PR_RcvDS@ * Here's what I have in qbndsrc: File . . . . . . QBNDSRC Library . . . . AS400CGI Position to . . . . . Type options, press Enter. 2=Edit 3=Copy 4=Delete 5=Display 6=Print 7=Rename 8=Display description 9=Save 13=Change text 14=Compile 15=Create module... Opt Member Type Text F.CONVERT F.HTTPSTD F.ITEMLIST F.LISTCARS What would the type be? Here's the code for F.HTTPSTD: *************** Beginning of data *************** STRPGMEXP EXPORT SYMBOL(#WrStOut) EXPORT SYMBOL(#RdStin) EXPORT SYMBOL(#GetEnv) ENDPGMEXP ****************** End of data ******************
    335 pointsBadges:
    report
  • aceofdelts
    We put our html source into the file HTMLSRC. One of my former shops called it that, too. Mike L.
    1,850 pointsBadges:
    report
  • Littlepd
    The default source physical file for binder language source members is QSRVSRC because binder language is used to build service programs (or *SRVPGM objects). The type for those source members should be BND. The copy members should be put in the source file named in your RPG program source. Open one of those program source members and find a /COPY directive. It should have the source file name listed there. If there is no source file name, just the copy member name, then the copy source needs to be in the same file as the program source. You can separate you module source from your program source if you like, but you don't have to. They can be placed in the same source file, as long as you don't have a program and a module with the same name. If you are going to be using the CGIDEV2 development tools (and IMHO you should), you should put the HTML source in the IFS. There are WYSIWYG development tools for HTML that will drastically improve your productivity over using SEU to edit HTML source. However, none of these tools can work with OS/400 source file members.
    1,130 pointsBadges:
    report
  • Yorkshireman
    ----------------------------------- Where does the book tell you to put it ?? ----------------------------------- Put it there
    5,580 pointsBadges:
    report
  • 65GTO
    The book does not tell you where to put the source that comes on a CD. It just says to FTP the source to AS/400 source files.
    335 pointsBadges:
    report
  • Teandy
    A source file is just what its name implies. It is place to store your source code. You can call it anything you want. Each "member" in the file is a program source listing. There are certian names that have been used over the years such as QRPGSRC for RPG source, QRPGLESRC for RPGLE source, QCLSRC for CL and CLLE source and QCBLSRC for COBOL to name a few. This naming convention led to names like QSRVSRC for service program source code also known as binder language. This is really basic information for programming on the AS400/iSeries/i5/IBM Power systems. If you do not understand this, and it sounds as if you don't, then you should start with something a little simpler than creating web pages on the i5 which some what different than creating pages for windows or other PC platforms. Try these links: http://www.scottklement.com/rpg/howtolearn.html http://www.geocities.com/itpweb1/400/html/ http://www.texas400.com/tutas400toc.html As well as a host of others found at: http://www.google.com/search?hl=en&q=rpg+tutorial+as400&aq=1sx&oq=rpgle+tut&aqi=g-s1g-sx6
    5,860 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following