I've got a logical keyed on field 1, field 2 and field 3. In my RPG I've got a chain to that logical with a key list where the values appear to match those in Field 1, 2 and 3. The chain fails to locate the record. A setll followed by a reade fails to find it. But a setll followed by a read does...
Thanks! We'll email you when relevant content is added and updated.
Hi guys, Currently i'm using RPGLE language. If i have a Physical File that without key, How am i going to set my pointer. I can't CHAIN,SETLL and SETGT as well. In order to use them, u need have a key. Am i rite? Is there any idea to solve this matter? Thanks!!!!
Thanks! We'll email you when relevant content is added and updated.
I have a subfile with few output fields and one character option field. I want user to enter 'X' in option field. if he enters wrong option I simply highlight fields my problem is: fields get highlighted but users input value does not retain in option fields. It gets disappeared. I am using...
Thanks! We'll email you when relevant content is added and updated.
What is the difference between %found and %equal? With SETLL we can use both %found and %equal but with CHAIN we can use only %found. It will be good if someone can please clarify this.
Thanks! We'll email you when relevant content is added and updated.
Is it possible to access a file created by opnqryf in an RPG/400 program using keys? I have defined the KEYFLD parameter but the RPG doesn't find the records when using READE or CHAIN.
Thanks! We'll email you when relevant content is added and updated.
Rather than proving it out myself, it's so much easier to ask if anyone has run into this before. While researching a bug, I found a program that chains to a file using a 3-field key list. BUT - the 2nd and 3rd fields are "wrong" (defined as alpha in the key list but numeric in the file). Seems...
Thanks! We'll email you when relevant content is added and updated.
Hi,anybody tell me how to find the end of file situation while reading through the CHAIN opcode on a file in RPG/400 and in RPGLE. I think RPGLE we have %found built in function.thanks
Thanks! We'll email you when relevant content is added and updated.
hi all, i have a physical file i need to update that file (not append) ,I opened that file in update mode eg F MYFILE UF E K DISK (i didn't mention 'A' because i dont need to append records) now after certain checks i update (any field) with syntex. UPDATE RECORD FORMAT but when i run this a dump...
Thanks! We'll email you when relevant content is added and updated.
I'm chaining a field to a unique keyed PF. I'm getting a not found indicator so I'm trying to write the record but I receive a duplicate key error. How this can be I do not understand. A colleague suggested that a field (or fields) within the record might be a key of other LF's over the file and I...
Thanks! We'll email you when relevant content is added and updated.
Hi, I have a problem in reading my subfile: After loading the subfile and display that on screen, I want to read the records of subfile and write them on preint file. But inspite of managing the RRN, every CHAIN command get the last record of subfile. here is the code: C EVAL RRN = 1 C DOW RRN <...
Thanks! We'll email you when relevant content is added and updated.