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

Answers were Sorted based on User's Feedback



How to declare the length of emp no in the physilcal file and the mandatory length is 6 i.e. Emp N..

Answer / syam

Use CHECK(MF) keyword in PF

Is This Answer Correct ?    5 Yes 1 No

How to declare the length of emp no in the physilcal file and the mandatory length is 6 i.e. Emp N..

Answer / 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

More IBM AS400 AllOther Interview Questions

Can anybody know difference between SNDUSRMSG AND SNDPGMMSG IN CL PROGRAMMING? IF DON'T KNOW MAIL ME @ gkarthik.as400@gmail.com

3 Answers  


What is the draw back of Procedures? why we are going to Modules?

0 Answers  


what keyword must be used with protect keyword ?

1 Answers   IBM,


What is the difference between a Physical File & a Logical?

28 Answers   Accenture, ACS, IBM,


in conjunction with which statements can orxx and andxx conditions be used ?

1 Answers   IBM,






what are the types of errors available in rpg IV or 400.Like decimal data error,sessional error or device error etc...means important error occurings,ie to find out suddenly???pls give answ if u know?Pls give the answer 1,,,,,,,to 12.........ie how it will happened like...for eg if a file is not closiing ,,,like this error is happened... if sufficient data is not in a pf to write in a display file. or sfldsp is not "on"......sessional or device error occured...like this give details all 1 to 12 errors (syam..)....give details PLsssssssssss?

1 Answers   CTS,


what is pointer error in rpg IV?

4 Answers   CTS,


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

0 Answers  


what is procedure prototype and procedure interface.

0 Answers   IBM,


what is the command to rtrieve system date? options:1.rtvsysval 2.rtvjoba 3.rtvjobd 4.both a and b

5 Answers  


How many secondary files allowed in a program?

1 Answers  


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM Can u plz tell me what the above code do exactly?

2 Answers  


Categories