what built in function can be used with SETLL.If you want
to check whether the search argument is successful or not?
Please give me answer with example?

Answers were Sorted based on User's Feedback



what built in function can be used with SETLL.If you want to check whether the search argument is ..

Answer / swetha p rao

%Equal should be used with Setll .%Equal says whether the
argument is present or not.

Klist1 SetLL File1
If %Equal
/* Argument Found
else
/* Not found

EndIf

Is This Answer Correct ?    27 Yes 4 No

what built in function can be used with SETLL.If you want to check whether the search argument is ..

Answer / syam

SETLL to set pionter to a record

To set pointer to Starting of the file use
C *LOVAL SETLL Recordname
To set pointer to End of the file use
C *HIVAL SETLL Recordname

To set pointer to a particular record of the file use
C Move currentYEAR YEAR(2008)
C YEAR SETLL Recordname

Is This Answer Correct ?    3 Yes 8 No

what built in function can be used with SETLL.If you want to check whether the search argument is ..

Answer / guest

%Found built in function is used with SETLL.%found turned
to be on when a record find in the file.

Is This Answer Correct ?    11 Yes 17 No

Post New Answer

More RPG400 Interview Questions

suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002

1 Answers  


What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.

2 Answers   IBM,


how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE

3 Answers   iGate,






RETRIVING DELETED RECORDS :- I'm frequently asked how to retrieve deleted records from an unjournaled physical file when the deleted records have not yet been removed from the file. Utility UNDEL lets you undelete records in a physical file. This public domain program is available in CISC and RISC versions, and the complete source code is available for download at: UNDEL for AS/400 Save File (RISC): http://www.as400network.com/sharewarefiles/undelris.zip UNDEL for AS/400 Save File (CISC): http://www.as400network.com/sharewarefiles/undel.zip UNDEL for AS/400 Save File (Source code): http://www.as400network.com/sharewarefiles/undelsrc.zip The utility takes advantage of the fact that deleted records in physical files are only flagged as deleted, and the record data still exists until it is overwritten or the file is reorganized with a utility such as RGZPFM. UNDEL simply reads the deleted record, then reuses the record by writing over it with the new record (thus eliminating the flag for the deleted record). Some homegrown and commercial utilities copy the file containing undeleted records to a save file, then use a program to read the save file, which contains live and undeleted records, to a file to undelete the records. The UNDEL utility is superior to the SAVF technique because there's no need to copy the file to a save file, which is especially important for really large files. When run, UNDEL displays the physical file records in their unformatted, raw text form. You can either position the display to a given relative record number or use F19 or F20 to find the previous and next deleted record, respectively. The utility also includes online help, which is almost unheard of for free utilities. Other utilities include the ability to undelete records. You can use the RTVDLTRCD command in the old QUSRTOOL (no longer supported by IBM). QUSRTOOL is now a commercial product called TAA Productivity Tools ( http://www.taatool.com ). The free file editor WRKDBF has a built-in undelete capability ( http://www.wrkdbf.com ), and several commercial file editors can undelete records. For a complete list of file editors, go to http://www.sourcebook400.com, select "Programmer Tools" under "Product Category," then select "File Editors."

0 Answers  


Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?

2 Answers  


How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

1 Answers   UST,


there is any limit to display the members in rpg400?

3 Answers  


how do u find whether a record is locked or not??

4 Answers   CTS,


How can we call CL program to RPG? How many number of parameter we can pass

2 Answers   TCS,


can we use cl programming to update or delete physical files

12 Answers  


Categories