As Packed veriable store 2 digits in 1 byte and ZONE
variable store 1 digit in 1 byte...
Please tell me when we have to use Packed and Zone
variable...?



As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please ..

Answer / ld123q44

Always used packed for a numeric field unless that field
will be subject to formatting(like the Social Security
Number) or exported or used by a another computer system
whose native data storage is not EBCDIC.

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More RPG400 Interview Questions

I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?

6 Answers   Virtusa,






what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?

2 Answers   HSBC,


Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  


How can we override a file during runtime in rpg?

0 Answers  


How to select highest score of each subject or how to select highest income of every month?

0 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


Categories