How to access all records in RPGILE

310 pts.
Tags:
AS/400 development
LOVAL SETLL
READE
RPG
RPG ILE
SETLL
hi all, suppose i have a report with input criteria 'machine code' and requirement it that if i input a perticular 'machine code' then it should COME only that , otherwise all records of all 'machine codes' should come , in clp i use %WLDCRD for that. but i need to do it in rpgile , is there any way to do it ????? please tell me.. thanks & regards Ambrish Srivastava
ASKED: December 10, 2008  5:21 AM
UPDATED: December 10, 2008  3:44 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You could check to see if your selection field is filled, if it’s filled use the value from the selection field to SETLL and READ or READE – otherwise use *LOVAL to SETLL and READ.

Regards,

Martin Gilbert.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ambrish 82
    thats okey but i mean when when i don't mentin any value there then (suppose ***** is there )then all record should be come..
    310 pointsBadges:
    report
  • philpl1jb
    Martin's answer asumes that the physical or logical is keyed on the field in question. Upstream of this program passed as a parameter or in this program provided by a display screen you get a value to report or '*****' for all so your code woud setll and reade on the value unless it's ***** then your code would Setll on *LOVAL and read until end of file. Paste a brief bit of your code in here and we'll help.
    48,565 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following