1.Where we declare Variables in RPG/400,RPGIV,RPGILE.?
2.When do we use D-spec and I-spec in real time ?.what is
difference between them?

Answer Posted / krocks

Ans 1 : We declare all our variables in D spec. Generally D spec comes after F spec on top of RPG program, but you can declare anywhere in your program.

Ans 2 : I-Spec and O-Spec are concept from RPG III, where one need to declare different variables for input and output. In D -Spec in RPG IV you need to declare only 1 variable for input and output.
I,O Spec used for RPG life cycle, printer file output etc...

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is kids-rpg?

667


how do I preserve and clean the array?

675


How many program bind in one module....

2121


What is file identifier where we can use?

652


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2278






what was the robotech rpg?

684


How to handle duplicate error handling in RPG?

1678


is this a rpg channel?

679


can you debug ile rpg program using isdb?

739


explain sflclr, sflend, sfldlt, and sflcsrrrn?

889


How to write record if no field or the field are different in physical file in rpgle ?

490


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

709


how do you use commitment control in rpg?

757


What is difference between bind by copy and bind by reference?

1730


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

753