wat is scan and check ? give me real time scenarios where
we used these keywords in ur projects?

Answers were Sorted based on User's Feedback



wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?..

Answer / sam

FACTOR 1 OPERATION FACTOR 2 RESULT
Comparator SCAN Base left most
string: length string:length position
of string

The SCAN operation scans a character string (base string)
contained in factor 2 for a substring (compare string)
contained in factor 1. The scan begins at a specified
location contained in factor 2 and continues for the length
of the compare string which is specified in factor 1.
The result field contains the numeric value of the leftmost
position of the compare string in the base string.

The CHECK operation verifies that each character in the
base string (factor 2) is among the characters indicated in
the comparator string (factor 1). Verifying begins at the
leftmost character of factor 2 and continues character by
character, from left to right. Each character of the base
string is compared with the characters of factor 1. If a
match for a character in factor 2 exists in factor 1, the
next base string character is verified. If a match is not
found, an integer value is placed in the result field to
indicate the position of the incorrect character.

Is This Answer Correct ?    15 Yes 0 No

wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?..

Answer / noah

this is used to scan for source codes that match the program
name the developer is looking for. This usually use to check
program dependencies before migration of source code for
integrity check purpose.

This scan function also used for analyze program flows.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More RPG400 Interview Questions

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


How do I read records from Subfile? what is the purpose of READC explain with example?

4 Answers   IBM,


Hi all friend, Could Any body send me the code (with coding) of this senario because I have tried but I am stucking somewhere so Please reply ASAp with coding. senario:Q: I have to write the flat file(FLAT1) into the three different PFS (PF1,PF2 and PF3) with the respect of H line data, D line data and Z line data of flat file. where I have different data in flat file(FLAT1) which is mentioned below with data. H0929200909282009092820095529420003000073 D2222220006765555webservi001633.9909222009092820090924200951 8564380134049ROSNER TOYOTA OF FREDE FREDERICKSBURVA 224080000USA840840001633.99001633.99851856492689800208001915 511001633.990408490000000.0000000003446048 1,3 110793145 09070700351 372367 Rosner Motors D3333320006774444webservi000271.2409222009092820090924200951 8564380134049ROSNER TOYOTA OF FREDE FREDERICKSBURVA 224080000USA840840000271.24000271.24851856492689800208001835 511000271.240930680000000.0000000003450293 1 110793254 09072100079 373933 Rosner Motors Z0929200900000020001905.25 FLAT1 has the three pf data H line-represents the header pf data,D-Represent Details pf data,Z-Represents the trailer pf data Now I have to write H line data of flat file into Header pf (PF1),D line data of flat into datails pf(PF2) and Z line data of flat file into pf(PF3) with the spefic position(H,D and Z data of flat file into PF1, PF2 and PF3) of flat file.

4 Answers   IBM,


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


purpose of pannel group??/

2 Answers   CTS,






What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


Need a sql query: retrieve all duplicate records in table?

1 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented

3 Answers   Cap Gemini, IBM,


are there any useful c runtime apis that I can call from rpg iv?

0 Answers   IBM,


Categories