wat is the difference between array and multiple occurence
data structure?
Answers were Sorted based on User's Feedback
Answer / swetha p rao
Multi occurance Data structure can hold different types of
data per record where Array can have only one data type.
we can read multi occurance DS using OCCUR and for arrays
we have to read based on index
Is This Answer Correct ? | 22 Yes | 3 No |
Answer / shantanu kumar dutta
As you know all Multiple occurance DS is a data
Structure,Means Collections of disimar data,It treat as an
Multi-dimension Array.
We read array By their Index possions, But Mul-Occr DS we
first set the possions by OCCUR Opcode and possion on
Factor1,
Then only we can read Mul-Occur DS.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / shivaprasad.s
array is collection of similar data type where as multi
occurance ds can be combine....
eg:like number as well as char.
in array we can store any datatype but all the elements
must be of same type....
but in case of multiple occurance it may not be of same
elements...
Is This Answer Correct ? | 1 Yes | 4 No |
how can we can we the data decimal error?how can we open such file in support
Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
what is difference between DSPFD and DSPFFD?please give me real senario with good example?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...
Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20
Can a indexed file be accessed in arrival sequence in RPG?
I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.
i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.
How do you do indexing in a physical file?
How can we change element of compile time array?Can we do so
How to declare the more than one file in cl/400.