Hi,while writing a program, what is the mandatory
specification using rpg/400 (in7 specification)?And please
tell me what is the difference between SCAN AND CHECK
opcodes?can any body tell me in real time senario?with
example?

Answer Posted / t thomas

%check validates a string character by character to a
particular set of characters and gives 0 if that character
in the string is not present in our set else give the
position.

%scan checks in a string whethere a string or character is
present in another string and also gives the start position.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

an access path may be in which sequence?

900


Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

868


can you specify a display file to be used in the following modes input,output, or combined modes ?

1214


what is the disadvantage of using global variable?

898


what is arrival sequence?

1469


I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.

2504


WHAT IS FERERENTIAL INTRIGRITY ?

1388


What Is The Object Type Of Pf, Lf, Printer File & Display File?

949


what is full form for dds?

976


when would you prefer logical file than opnqryf?

1851


which are the query selection criteria, which can be given in a query?

906


can we define multi-dimensional arrays in rpg ?

1270


what is *iso date format?

835


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1976


is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

800