Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Hi.can any body give me the code for this quesiton please.Because i dont have to try to enter the code in to the AS/400 server.Please can anybody give the answer for this question with complete code? A smple RPLE pgm which accepts the starting number and ending number as parameter.It then has to count all the odd numbers b/w the accepted range of numbers and display the results/ Ex:if the input parameters are 11 and 30 the result should be 10(11,13,15,17,19,21,23,25,27,29) Please explain and give me the complete code?

2 Answers   Bally Technologies,


What do you mean by ODP?

1 Answers  


load all subfile logic in sqlrpgle and when updating particular record it must be lock form other jobs (not a file)?

1 Answers   Wipro,


what is a keyed physical file?

1 Answers   IBM,


how can a procedure will be added in to a srvpgm

4 Answers   TCS,






is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

0 Answers  


What are the functions of Remote Job Entry (RJE) ?

1 Answers  


Is qgpl a user library or system library?

1 Answers  


How do you put jobs in batch mode?

1 Answers  


what are the parameters required for calling ls & get command(SFTP COMMANDS) from cl progtram.... e.g call PGM(qp2shell) PARM('/qopensys/usr/bin/sh' '-c' 'sftp -b /home/mydir/tmp.txt user@host.com') Plz reply in detail...

1 Answers  


how many maximum spaces could be given in o specs?

0 Answers   IBM,


Q.Suppose one job is running in a batch mode for a long time now i want to kill this batch job. how you achive this?

3 Answers   IBM,






Categories