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

how do you use commitment control in rpg?

743


what is a rpg?

690


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

491


how does the rpg element work?

709


what is an online rpg?

711






what is kids-rpg?

657


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1441


How would display prime numbers using CL program?

5666


can you debug ile rpg program using isdb?

730


what is file information data structure?

1350


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

752


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

471


How to handle duplicate error handling in RPG?

1664


what is the rpg system?

660


explain sflclr, sflend, sfldlt, and sflcsrrrn?

876