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?

Answers were Sorted based on User's Feedback



Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?..

Answer / swetha p rao

C Spec is mandatory because we need to specify SETON LR in
the program,If (C SETON LR) is not specified program throws
a compilation error.

Is This Answer Correct ?    8 Yes 2 No

Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?..

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

Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?..

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

More IBM AS400 AllOther Interview Questions

What Is The Purpose Of The "n" In The Following Calculation Specification?

0 Answers   IBM,


can I copy content of Physican file in some source Member of type TXT? Thanx..

1 Answers  


what are the necessary keywords for the join logical file?

2 Answers   IBM,


What are the record format field mapping options in cpyf?

0 Answers  


What are the types of data structure in as400?

0 Answers  






what is the use of jdftval in join logical file?

1 Answers   IBM,


what is code for reading member in rpgle when wehave like extmbr(*all) so we have 3 members in *all then i want to read first record in 2member

2 Answers   HCL,


Describe about Query/400?

1 Answers  


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx

2 Answers  


how many files can be defined in f specs?

2 Answers   IBM,


what is the necessary keyword for non-join logical file?

1 Answers   IBM,


List and explain the different type of data structures?

1 Answers  


Categories