what is data structure?how many types of data structers?

Answer Posted / jeet

Data structure is specified in the Input Specification of an RPG 3 Program where as in RPG 1V we specified in 'D' specification.
Data Structure is define an area in storage and layout related subfields.
There are 4 types of data structures
1) Data Area Data Structure
2) File Information Data Structure
3) Program Status Data Structure
4) Multiple Occurence Data Structure

Data Structure is used for
1) To break fields into subfields
2) To change the format of the field
3) To Group non-contiguous data into contiguous format
4) To convert data.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what opcode could be used to test an alphanumeric field for all numeric values?

1458


How to reverse a string using RPG?

1151


Difference between NOPASS & OMIT?

1529


any one have give AS400 study material? pls pass it to gopalsai789@gmail.com

1470


how many files can be defined in f specs?

1878


what is the function of rlu ?

1322


Difference Between Skip Before & Space Before?

933


How to convert a spool file to PDF file in AS400?

966


what is the function of cpyf command?

1314


define the purpose of the iter operation?

1435


how to toggle between single line and multi - line display of a particular record in a subfile?

1456


what is elastic and non elastic subrile?

796


what is maximum number of arrays allowed in rpg?

1564


how can you detect and handle a record lock situation?

1611


how can I automatically refresh a web page?

851