Get answers.  Share knowledge.  Collaborate with peers.




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,965 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,215 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,215 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,215 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
108,215 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, what is, Windows
discussed by:
TomLiotta
108,215 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
108,215 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
0
discussed by:
TomLiotta
108,215 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
108,215 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
10,860 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
10,860 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
32,905 pts.

SAP FICO Training in North NJ

i think Rajesh wrote that himself..lol 



View Discussion   |  May 23, 2013  7:49 PM
SAP certifications, SAP FI Certification, SAP FICO
discussed by:
dipak1123
10 pts.

Cursor movement

Are you useing CHECK(FE)?
If so, that is forcing use of the Field Exit key.



View Discussion   |  May 23, 2013  7:29 PM
Cursor movement
discussed by:
CharlieBrowne
32,905 pts.

Deleting outq spool files for specific date range

Oh ok thank you.



View Discussion   |  May 23, 2013  6:24 PM
0
discussed by:
planetae
35 pts.

Deleting outq spool files for specific date range

If you write your own code, the most common way is to have the name of the output queue as input to the program. That was you do not do a global delete. There are legimate reasons to keep some spool files longer than 14 days.



View Discussion   |  May 23, 2013  6:08 PM
0
discussed by:
CharlieBrowne
32,905 pts.

Deleting outq spool files for specific date range

The quick answer is NO

Many companies have user writen code to do this.
Another option is to use the expiration date on printer files. That would help you in the future but not for current spool files.



View Discussion   |  May 23, 2013  6:06 PM
0
discussed by:
CharlieBrowne
32,905 pts.

CPF4205 – Shared open not allowed for query

I’m still of the opinion that you open the queries at one level without a DCLF and work with the results in a called program.

But as far as deterimining if the RPG program is hanging up the close, just don’t call it an see if the error goes away.
Phil



View Discussion   |  May 23, 2013  5:50 PM
As400 Opnqryf command
discussed by:
philpl1jb
44,190 pts.

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

Hi Tom!
you have very rightly said as to why to use an old programming(viz., RPG III), I can understand the frustration with it. Given a choice, even I would like to go for RPGILE.
but Iam helpless, as Iam changing an old program written way back in 2001, to add some more fields & validations to it. The client will not accept for the change in the language altogether. I don’t have a choice.
However thanks a lot guys!, for your patience & prompt replies.Really appreciate them. Thank you!



View Discussion   |  May 23, 2013  3:11 PM
AS/400, RPG/400
discussed by:
svankipu
340 pts.

Access 2003 Parameter Query Bollixed

Tom,

The entire scenario is that I have a report that is displays info from a query. The report is called by a macro. If I run the query directly, no problem. If I open the report, the included parameter is requested but then one or more other parameters are asked for that are not part of the query. Weird or what?

wem3rd



View Discussion   |  May 23, 2013  1:24 PM
parameter query
discussed by:
wem3rd
45 pts.