Get answers.  Share knowledge.  Collaborate with peers.




Access 2003 parameter query bollixed

Tom,

I tried to make the report work a dozen times with no success. I recreated the file and imported its MS Word document and all works just fine now.

Win 98 to the rescue!

Must have been a glitch in the original importing of the MS Word document.

wem3rd



View Discussion   |  May 24, 2013  3:01 PM
Microsoft Access 2003, Microsoft Access query
discussed by:
wem3rd
60 pts.

As400

SQL can run a statement like this:

   INSERT INTO MyFile2 SELECT * FROM MyFile1
The INSERT inserts all rows SELECTed from MyFile1. The SELECT statement is a “subselect”. It’s not a statement by itself.
.
In that form, it can be placed into a RUNSQLSTM source member.
.
The SELECT can have a WHERE clause if you want to only copy some of the rows. It could use a GROUP BY clause if you wanted to put summary rows into MyFile2. If you need to have variables to change parts of the statement, then you would use STRQMQRY instead of RUNSQLSTM.
.
In short, it seems that you don’t need both RUNSQLSTM and STRQMQRY. You should be able to use just one or the other and get it done in a single INSERT statement that uses a sub-select.
.
Tom


View Discussion   |  May 24, 2013  12:30 PM
AS400 - Embedded SQL
discussed by:
TomLiotta
110,035 pts.

CPF4205 – Shared open not allowed for query

The problem comes from the sharing. OPNQRYF cannot share an existing ODP. But unfortunately, as you’ve learned, the reason you have to share is because of OPNQRYF. You’ve answered why the sharing is done; OPNQRYF requires it. But it seems like a contradiction, doesn’t it?

.
That’s why I suggested that you might need three CL programs instead breaking it into only two.
.
You need one CL program that calls one CL with OPNQRYF, then calls your RPG program, and finally calls the second CL with the second OPNQRYF. The final structure has three CL programs and one RPG.
.
The OPNQRYFs will be in two separate programs, and the first of those will be completely finished before the second one starts. Your code then begins to look like this:
.
Main program:
Call CL1

Call RPG program 

Call CL2
Inside CL1:
PGM
DCLF File(XXX)
OvrDbf     File(xxxx) ToFile(*LIBL/xxxx) SHARE(*YES)                    
OpnQryF    File((xxxx) QrySlt('Fld1 *EQ "3"')                   
read the file here 
Inside CL2:
PGM
DCLF File(xxx)
Ovrdbf     File(xxxx) Share(*Yes) Secure(*Yes)      
Opnqryf    File((T00210)) QrySlt('AAAUS *GT "111" +        
             *And AAAUS *LE "222"')
If you need to pass values between all of the programs, you’ll need to use parms to do it.
.
See how CL1 is completely finished by the time CL2 runs?
.
Tom


View Discussion   |  May 24, 2013  12:17 PM
As400 Opnqryf command
discussed by:
TomLiotta
110,035 pts.

Notes to pst conversion

Yes, Export Notes is good and helpful utility that convert
Domino v8.5 nsf mail file to Outlook .pst without any removal or variation in
information as well as it manages same folder structure after Lotus Notes to
Outlook
Conversion.



View Discussion   |  May 24, 2013  10:59 AM
Lotus Notes administration, Lotus Notes Conversion, Lotus Notes to .PST, Notes Administration
discussed by:
lararacheljune
10 pts.

As400

Thank you all i am able to achive this with ought RUNSQLSTM,but able to achive this through 2 processes .
1STRQMQRY
2embedded sql



View Discussion   |  May 24, 2013  9:57 AM
AS400 - Embedded SQL
discussed by:
ravula
615 pts.

CPF4205 – Shared open not allowed for query

I have used sharing because otherwise my Rcvf was not getting the records that satisfy the QrySlt condition mentioned in Opnqryf.
I have Dclf, ovrdbf share(*Yes), opnqryf, and Rcvf on both the CL programs. But the Opnryf QrySlt condition is different in both the CL. As I said, if the file reads till Eof, I dont have any issues. The issue appears only if I read one record alone. And from your response I understood we cannot deletet the ODP just by closing the file and deleting the override. And my programs are not Clle, they are CLPs. If I make Share(*No) do I need to change the scope to *Job inorder to read the Qryslt records using Rcvf?



View Discussion   |  May 24, 2013  7:13 AM
As400 Opnqryf command
discussed by:
RamvishakRamesh
2,030 pts.

How can I attach note/comment to Outlook emails?

http://www.highprbacklinks.co.in

PageRank is a probability distribution used to represent the likelihood that a person randomly clicking on links will arrive at any particular page. PageRank can be calculated for collections of documents of any size. It is assumed in several research papers that the distribution is evenly divided among all documents in the collection at the beginning of the computational process. 


View Discussion   |  May 24, 2013  6:06 AM
Email (systems), Outlook, Outlook Administration, Plugin
discussed by:
alternative
30 pts.

CPF4205 – Shared open not allowed for query
…I had deleted that override in that program itself after closing the file…
That is all completely irrelevant. It doesn’t matter if the override was deleted; the ODP is still there until the program ends. It doesn’t matter that you ran CLOF; the ODP is still there until the program ends.
.
I’ll say it again. Once the file reaches EOF, that’s where it stays until the CL program ends. You can’t make the ODP close. You can’t remove the override from the ODP. That’s how it has always worked, and it won’t be any different until you can upgrade to i 6.1 so you can use the new CLOSE command.
.
After the ODP is created, you can’t get rid of it without ending the program that created it (or until i 6.1). The override has become part of the ODP. Deleting the override just means that a new ODP over the same file won’t have the same override applied to it. But the original ODP is still there.
.
Since CL program 2 is running inside of CL program 1, it is directly affected by CL program 1. You might scope the overrides to the activation group, and compile the two CLs to run in different activation groups. But that mostly apparently means the same thing as not sharing the ODP. Run it all as SHARE(*NO) and see if there are differences. I already asked if you had a reason for sharing, but I haven’t seen a response yet.
.
The error message tells you that you can’t use sharing for that function, and I don’t see any reason to use sharing. So, why not get rid of it?
.
Tom


View Discussion   |  May 24, 2013  5:55 AM
As400 Opnqryf command
discussed by:
TomLiotta
110,035 pts.

CPF4205 – Shared open not allowed for query

Though I used share in both CL, I had deleted that override in that program itself after closing the file and then called the second program. I have commetned out the call to SQLRPGLE program, but still the error is there. But one thing I noticed was my Rcvf was not looping till EOF as for testing purpose I had commented out the loop to read the file again. So the RCVF was reading the file only once and then it was calling the RPG program, then close the file delete the override and call the second RPG program. Now I remove the comment and the file is reading till CPF0864 and the problem is resolved. But if the file is read only once….then even after closing the file why it is not allowing to do another opnqryf in the second program remains unanswered.. :(



View Discussion   |  May 24, 2013  4:11 AM
As400 Opnqryf command
discussed by:
RamvishakRamesh
2,030 pts.

Cursor movement

Correction… What is the SFLCTL DDS for fields (rather than the “subfile” itself)? — Tom



View Discussion   |  May 24, 2013  2:38 AM
Cursor movement
discussed by:
TomLiotta
110,035 pts.

restore administrator account windows xp

What computer? What is the OS? Is this your personal home system or a business system? How have you maintained old restore points? — Tom



View Discussion   |  May 24, 2013  1:03 AM
Windows administration, Windows XP
discussed by:
TomLiotta
110,035 pts.

CPF4205 – Shared open not allowed for query

The RPG possibly doesn’t matter (though the OVRDBF could make odd trouble; I’ve never mixed OPNQRYF and embedded SQL which seems almost contradictory).
.
The ODP is *SHAREd in the outer CL and also *SHAREd in the inner CL while the outer is still active.The outer ODP still exists. The two CLs have different OPNQRYFs, so the *SHARE probably should not be used at all. The two CLs need different ODPs. There’s nothing that should be shared as far as I can tell.
.
Tom



View Discussion   |  May 24, 2013  12:46 AM
As400 Opnqryf command
discussed by:
TomLiotta
110,035 pts.

Can I move a data structue(along with positional-values) into a Data area of same length.

In 2001, the coding was already old and out of date. But today it needs to be converted soon. Tools such as SEU have already been stabilized and will not support new language features that have been added since i 6.1. And the old compilers have become a separate extra charge in i 6.1.
.
To provide your client best service value, you should make sure that your client knows they may be headed for some unexpected charges for upcoming system upgrades.
.
That’s separate from simply losing programmers who were familiar with the language due to retirements. And that includes IBM developers if support is needed. (Not to mention people like us trying to remember how things used to work.)
.
But again, is there a reason you don’t simply use the automatic support? You shouldn’t need to use the IN and OUT operation codes if you’re getting the original data area values and updating it. The program can get the data area automatically when it starts and and write the data area when it ends. Any changes your program makes will be stored automatically if that’s what you want. It might not be necessary to use *NAMVAR DEFN at all.
.
Tom



View Discussion   |  May 24, 2013  12:38 AM
AS/400, RPG/400
discussed by:
TomLiotta
110,035 pts.

Windows on Mac

Please clarify. What do you mean by “windows”. The Mac OS uses windows in its presentation modes. Or are you asking about installing a Microsoft Windows OS on Mac hardware? And what “mac” are you asking about? What is the hardware? What OS is currently installed? And what do you mean by “best”? Do you want the cheapest? The fastest? The easiest to install? The easiest to use? (Easiest for whom? A general user? A developer?) The one that runs some Windows program that you want to run? (What program?)
.
Tom



View Discussion   |  May 23, 2013  11:54 PM
Mac, Windows
discussed by:
TomLiotta
110,035 pts.

Cursor movement

Can we see the DDS that describes the subfile record fields? Their attributes might affect the useful ways to progress from field to field. For example, numeric entry fields or dates might be defined with attributes that interfere with automatic movement, but we can’t tell without seeing it.
.
Tom



View Discussion   |  May 23, 2013  11:47 PM
Cursor movement
discussed by:
TomLiotta
110,035 pts.

Deleting outq spool files for specific date range
What OS version are you running?
.
And what spooled file attributes have you been setting to help manage spooled files? I.e., do you control the Form, spooled file name or User Data attributes (among others)?
.
IBM does provide example programming for a ‘Delete Old Spooled Files’ tool. See the Delete Old Spooled Files (DLTOLDSPLF) document for details. The code can be modified by you to customize it for your specific needs.
.
Tom


View Discussion   |  May 23, 2013  11:28 PM
AS/400, AS/400 Spool Files
discussed by:
TomLiotta
110,035 pts.

open with r studio
I suspect that you might be confusing R Studio with R itself. (And I might also be misunderstanding, so bear that in mind.) R Studio is more intended as a development environment to generate R functions. R Studio shouldn’t access data for statistical processing. You would use R Studio to develop R functions that you would run later, and those R functions might then read from a database.
.
But even R functions can’t “read .MDB files”. You need Microsoft SQL Server to read .MDB files. Then you use the RODBC package to have your R functions request data from SQL Server.
.
You could create any ODBC or JDBC process to convert SQL Server data into a form that R finds more useful. Regardless, it will be SQL Server that does the reading of the .MDB file.
.
Because “SQL Server” is possibly a little much for your needs, most likely you would actually use Microsoft SQL Server Express, a ‘free’ version for smaller uses.
.
Tom


View Discussion   |  May 23, 2013  11:03 PM
r studio
discussed by:
TomLiotta
110,035 pts.

What is your definition of SDN?

The way I understand it, it’s not all that different from cloud computing. It’s merely defining, designing, implementing, and managing networks from the perspective of software rather than hardware. A physical decoupling so to speak.



View Discussion   |  May 23, 2013  8:47 PM
Interop, SDN, software defined networking
discussed by:
KevinBeaver
11,040 pts.

What data do you consider critical?

Great discussion point Chris…I see some people *try* to backup everything. That’s an exercise in futility and can create unnecessary expense and liability. I also see people assume they’ve backed up everything that counts but they’re not even close.

The problem here is complexity associated with unstructured information. People simply don’t know what’s where. If they believe they do and it’s pointed out that critical information is also being stored somewhere else, the response is always the same: “Oh yeah, I forgot about that.” I don’t envy network managers these days.

More info on finding and securing unstructured information here: http://www.principlelogic.com/storage.html



View Discussion   |  May 23, 2013  8:44 PM
Critical storage, Data backup and recovery
discussed by:
KevinBeaver
11,040 pts.

What data do you consider critical?

In one AS400 shop I was in, the only thing that was “critical” that was lost, was my own development library.
Ever since then (over 20 years ago), I have never bothered to define what is critical. My backup stratagey uses logic that backups up everything that I have determined is NOT critical.
Thus when some new library or folder, etc is created, it will be backup up by default, unless I identify it as NOT critical.



View Discussion   |  May 23, 2013  8:28 PM
Critical storage, Data backup and recovery
discussed by:
CharlieBrowne
33,595 pts.