I don't run the RclTmpStg, that process is taken care of when I automatically IPL the system every Sunday morning at 1:00 AM.
PwrDwnSys Option(*Immed)
Restart(*Yes)
IplSrc(B)
I do the RclStg monthly, after I complete the SAVSYS. I find that after I run the RclStg, that...
What type of system are you sending the spool file to? Another as/400?
Do you need to send the print control characters with it?
RedMage1967
IBM Certifed - RPG IV Progammer
I feel so embarresed.
The "D" specs are correct.
I confused GRAPHS (the data structure name), and
GRAPH (the subfield in GRAPHS defined as an array.
I changed the names. The data structure is now called GRAPH, and the subfield array is now called USAGE.
Thanks for the help. Should have...
Just upgraded to V5R2. The online help says that complex data structures are not allowed in V5R2. But, IBM doesn't show you how to define the data structure. Can someone please help me with the following "D" Specs?
D Graphs Ds Qualified Dim(13)
D TopValue...
The only problem with the CPYTOIMPF command is that it leaves the blanks in the field, it doesn't trim them. I've written my own program to create CSV output.
RedMage1967
IBM Certifed - RPG IV Progammer
It does. I have several apps that need to read two different file members, from the same file. I use the EXTMBR keyword, then define a variable for the member name. I change the variable name depending on the program logic that determines which member to read from.
RedMage1967
IBM Certifed -...
You can use the EXTFILE keyword, then the EXTMBR keyword.
Check this out.
FOutput1 O F 80 Disk ExtFile('KB0405P')
F ExtMbr('KB0405ALL')
FOutput2 O F 80 Disk ExtFile('KB0405P')
F...
Since it looks like you're coding in RPG IV, try using the EXTFILE and EXTMBR keywords on the "F" specs. Then just send the member name to the program as a parm.
RedMage1967
IBM Certifed - RPG IV Progammer
I have an application that allows the user to graph the number of mail pieces processed, by month, over the course of the year. He now wants to be able to print that graph. I can't find anything in the documentation on how to do that. I've defined a graph part on the window itself, just how...
When you restore a source file, you need to do the following:
RstObj Obj(QRpgLeSrc) +
SavLib(MySrcLib) +
Dev(Tap01) +
ObjType(*File) +
SeqNbr(21) +
EndOpt(*Unload) +
FileMbr(QRpgLeSrc (MySrcMbr)) +
MbrOpt(*All)
Just a couple of notes. You need...
Have you tried using the Client Access plug in that allows you to export a PF directly into an excel spreadsheet?
RedMage1967
IBM Certifed - RPG IV Progammer
Got it figured out, I think. There's a job running under QUSRWRK, that looks like it's building some sql tables. The job abended due to the job log being full. I'll give this another try tonight (but first, disable the logging of messages).
RedMage1967
IBM Certifed - RPG IV Progammer
When you compile a program with a subprocedure, make sure you're setting the default activation group to no.
DFTACTGRP(*NO)
RedMage1967
IBM Certifed - RPG IV Progammer
You cannot save a spool file. You would have to first use the CPYSPLF command with the CTLCHAR(*FCFC) parm and copy the spool file to a physical file. Then you could save the physical file, transfer it to the other system; write a program to interpret the *fcfc control characters and recreate...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.