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 / madhusudhan

Difference Between Scan and Check Operators
'D' SCAN 'Hardcore' Res
'D' Check 'Hardcore' Res1
'D' Check 'Dragon' Res2

Res = 4 , Res1 = 1 , Res2 = 2

Scan always gives the position where the search string is
found.
Check always gives the position of First non-existent
Position. Hope the RES1 and RES2 example will give you an
idea of CHECK opcode

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to develop some simple graphs (bar charts) using just html?

656


Difference between NOPASS & OMIT?

1174


how can you check for a records existence without causing and i/o (chain/read)?

1279


what are the different types of data areas?

971


what does vldcmdkey means?

801






If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

1472


what is maximum number of arrays allowed in rpg?

1169


Write a logic program for knowing the repeated number of a vowels in a given program?

3299


where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1099


what is the purpose of overrides?

1009


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)

1726


Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?

646


what is sflpag and sflsiz ?

2253


how can u check no of records in a file?

657


What is RETURN CURSER LOCATION in subfile?

1066