How to declare the length of emp no in the physilcal file
and the mandatory length is 6 i.e. Emp No should be
numeric, mandatory and fill all the 6 places
Answer Posted / pallavi
Syam is partly correct, but it will allow eventhough we
didn't specify any value for that field.
So we have to use mandatory entry along with mandatory field
Use CHECK(MF ME)
Hope this works fine.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Difference Between Call & Sbmjob?
can you display a empty subfile?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
How can we change the uppercase to Lowercase in RPG?
how many printer files maximum can be used in single rpg program?
define what a data area is along with a brief example of what it may be used for?
can you have multiple key lists for a single file ?
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
in conjunction with which statements can orxx and andxx conditions be used ?
difference between view and index ?
when do you explicitly open files and close files in an rpg program?
can a join logical file be updated?
what is *inzsr used for?
What is difference between rename and prefix?
What Is The Difference Between Goto & Exsr?