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
Answers were Sorted based on User's Feedback
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|
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
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|
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
%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|
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?
What do you mean by ODP?
load all subfile logic in sqlrpgle and when updating particular record it must be lock form other jobs (not a file)?
what is a keyed physical file?
how can a procedure will be added in to a srvpgm
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
What are the functions of Remote Job Entry (RJE) ?
Is qgpl a user library or system library?
How do you put jobs in batch mode?
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 firstname.lastname@example.org') Plz reply in detail...
how many maximum spaces could be given in o specs?
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?