Re: RPG Programming on Advanced 36



Sounds like you're using some S/36 mode...

I will probably need to copy an existing RPG program to use as a
starting point for a new program and do some programming. The programs
are very simple - just read in a file with some packed fields, then
writes them out not packed.

I see most files using the CATALOG command.

Catalog shows FILES and Libraries, etc - not "Programs".

Programs (Source, Compiled, OCL (=procedure commands), etc) are held INSIDE
Libraries, as "members" of that Library.

I think LISTLIBR will show you the contents of Libraries. And
FROMLIBR/TOLIBR will copy "members" within libraries.

But it sounds like RPG programs are kept as source members in a
library, and then whetever kind of compiled and linked output is put
into other file members? I need to understand better where RPG source
programs and output executables are kept and how to list them out.

A listing of all members in a Library will identify the TYPE of member - S
(Source), O (Object/Compiled/Runnable), P (Procedure - like BAT in the
DOW/Windows world), R (also source members).

So far, I used SEU to edit one line in an existing RPG program, and
recompiled it with the REPLACE option to it went whereever the original
went. And that worked.

When SEU closes down, it gives you the option to Compile the modified
program - because that's usually what's needed.

But what compiler option do you use to compile
it for the first time?


I think the command to compile a program is RPG (or maybe RPGC) - it's been
many many years since I typed that command!! A compilation will produce a
Listing, Cross-reference tables, etc, if requested.

Also, but do you insert a new line into the source program using SEU?

When SEU opens up a file, it assigns a temporary line-no to each
source-line, as shown on the left. Eg, 1.00, 2.00, 3.00. If SEU is in
Enter/Update mode, then, to insert a new line between 2.00 and 3.00, key any
line-no value between 2.01 to 2.99 (hint, use 2.50 !!), and SEU will open up
an empty line, using the same "line-format" as the previous line. Use CMD3
(I think) to change the suggested format to another line-layout.

- Mike


.



Relevant Pages

  • Re: I need help: Ensure library presence.
    ... If you have ensured the library's presence when you compile ... the unresolved command name will be compiled ... (assuring that all required libraries are present at that time) ... for originally sluggish commands such as VARS and ORDER, ...
    (comp.sys.hp48)
  • Re: Access Extable from C?
    ... address pointing to ROM. ... I was thinking the same routine should be able to compile symbolics ... believe the two libraries mentioned above also contain all information ... algebraic command was stored in a library with its own additional ...
    (comp.sys.hp48)
  • lcclnk problems
    ... I must compile a c program recalling lcc inside a c# ... if I compile my c program in line command or in IDE I've ... The problem are the libraries, exactly rasapi32.lib, shell32.lib and ...
    (comp.compilers.lcc)
  • KDevelop Question
    ... After the recent discussion on C++ IDE's, I thought I'd try out KDevelop ... (I normally use the command line), and I'm having some problems getting ... a program to compile (which works perfectly fine from the command line ... That would compile the PostgreSQL and MySQL client libraries statically, ...
    (Fedora)
  • Command Line Compiler, CS0116: A namespace does not directly contain members such as fields or metho
    ... is no longer compiling for me via the command line. ... As I have done 600 times in the last year and a half, I can compile to ... does not directly contain members such as fields or methods ... shows up in the output of csc for every single file in the project. ...
    (microsoft.public.dotnet.languages.csharp)