Get answers.  Share knowledge.  Collaborate with peers.




Question on Logical File
how can i solve this problem
.
What “problem”?
.
Nothing seems unusual in what you showed. When you recompile the LF, the existing one needs to be deleted before the replacement can exist in the same library.
.
Tom


View Discussion   |  May 25, 2013  8:26 AM
AS 400, logical file and Physical File
discussed by:
TomLiotta
108,310 pts.

biometrics

For what uses? — Tom



View Discussion   |  May 25, 2013  5:16 AM
Biometrics
discussed by:
TomLiotta
108,310 pts.

Need for police officers

Are you curious about the future for most people alive today or for some time within the next few dozen centuries or more? It seems unlikely in any near future.
.
Technology involved around police actions advances as always, both positively and negatively. Technological advances need to be understood at a “meta” level before society learns how to manage human interactions Implications and relationships are too complex and not enough is known. We have a long way to go before we reach predictability for individuals in a population. Until then, technology will counteract technology; and human presence will be required.
.
Tom



View Discussion   |  May 25, 2013  5:15 AM
Biometrics and police officers
discussed by:
TomLiotta
108,310 pts.

Creation and dump of a user space iSeries

The actions I asked about are possible kinds of things that might have happened manually or by 3rd-party products or other ways completely separate from the use of the user space. For example, someone might do a test install of some Security or Compliance product. A test run of the product could run through a list of libraries to retrieve ownership and authority in order to generate a sample report.
.
Now, that example shouldn’t have the effect you’re asking about. It’s just an example of some external, unrelated process that touches objects on the system. And the point is that something like IFS processes can happen in many ways.
.
IFS activity is interesting for user spaces because a space can be accessed as a stream file. You can use the CPY command or EDTF to modify a space. I haven’t seen either of those give your result, but I don’t know all possible combinations. The use of SAV might set IFS-style backup attributes.
.
In short, I don’t see anything that you can do differently. Your recreation seems to be appropriate. You might need to call the QUSCUSAT API for additional attributes, in case you need it to auto-size itself or other reasons.
.
IBM support seems to be your best place to go if you need an authoritative explanation.
.
Tom



View Discussion   |  May 25, 2013  12:24 AM
AS/400, iSeries
discussed by:
TomLiotta
108,310 pts.

emp

If you are rich enough to build one, then you’re rich enough to hire companies that can do it. You don’t need to ask here, and this isn’t a place you can get that kind of information anyway.
.
Tom



View Discussion   |  May 24, 2013  11:07 PM
emp electromagnetic pulse
discussed by:
TomLiotta
108,310 pts.

1t external hard drive…

My 1T external has a D/C power supply that has to be running for it to power up?



View Discussion   |  May 24, 2013  7:50 PM
External hard drives, USB hard drives
discussed by:
AlwaysLearnin
10 pts.

ink cartridge

Can you give us more information as to what is happening?



View Discussion   |  May 24, 2013  5:13 PM
hp outlook
discussed by:
CharlieBrowne
32,915 pts.

Creation and dump of a user space iSeries

I did not find any call to QLICOBJD , neither object auditing … I did not find IFS calls either … as you said the other parameters do not wite this -extended data- section …



View Discussion   |  May 24, 2013  4:35 PM
AS/400, iSeries
discussed by:
GraceP
340 pts.

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
parameter 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
108,310 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
108,310 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
450 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
1,975 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
108,310 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
1,975 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
108,310 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
108,310 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
108,310 pts.