@CN is an array and @CN,002 represents the 2nd element of
SQL statment is error in embeded sql, then SQL code will
give the negative value.
There is no comparision between DO and ITER as DO statement
is an looping statement and ITER is an branching statement
When I use ITER with some condition inside a DO-ENDDO loop,
when that condition occouerd, ITER transfered the control
to ENDDO not out of the loop like LEAVE ie it just skip the
excecution of statements between ITER and ENDDO.
In one statement we can say that ITER in RPGLE is same as
CONTINUE in C.
4. How can we search particular records from the database file in RPG. For example, there are
100 records in the file.i need to retrieve all the records matching/equal to the particular NAME field. How can we do the above using SEARCH criteria other than using the IF cond?
This can be done using the Key Field.
KEY1(NAME FIELD) SETLL FILENAME
KEY1(NAME FILED) READE FILENAME
we have to create multiple threads in the job. when we
submit the job ,multiple threads will run parallelly. so it
will take very less time to complete the job. This is the
best way I believe.
the length of the signature is 16 bit like g2g4h5v3f3v4546k
Use EXTFILE on F Specs
MDT is a internal indicator.It is used when we are using
SFLNXTCHG in SFL.MDT indicator default in on mode.
breifly when we are using readc for read changed
records.MDT is internally on for every record .If retreive
the record once MDT is going to be off.for that purpose we
used SFLNXTCHG keyword to seton.
system will genaret the uniqe file identifier for every
file.system identifies file thourh that identifier.supose u
can call a file throuh an other program but u do any
change after that file identifier will change.u got error
on that time level check error cause u r file identifier