You are on page 1of 3

Assignment 1

G DILEEP KUMAR

1. Define a field ‘Customer Number: ‘ in DFLD section. Next to that have the value for it of
length 14 bytes. This value should not be visible to the user seeing the screen, should be
non-editable on the screen but can be modified by the programmer if needed through IMS
DC program.

Code the MFLD if needed for the above too.


ANS::
DFLD ‘CUSTOMER NUMBER:’, POS=(1,5),ATTR=(HI,PROT)
CUSTNUM DFLD POS=(1,18), LTH=14, ATTR=(NODISP,MOD,PROT)

MFLD CUSTNUM , LTH=16, ATTR=YES


2. If there is a field defined in DFLD of the screen code (MFS) of type character and is of 10
bytes with ATTR=MOD then what should be the length of this field in MFLD section?
ANS::
LENTH OF FIELD IN MFLD IS ‘12BYTES’
In copy book :
01 MSG-OUT
05 INV-NUM-ATTR PIC X(2)
05 INV-NUM PIC X(14)

3. How will you identify if the program is an IMS DC program? What are the keywords you
would look into the program to confirm that?
ANS::
1. IN LINKAGE SECTION, the first pcb will be IO pcb
2. In procedure division, ENTRY statement, The first pcb will be i0 pcb.

4. Code the MFS for the screen mentioned below. Compile the code in Mainframes to create
MFSGEN.

Important note: Ignore the last 5 lines that contain instructions below when you code your
MFS.
5. Please code the below screen where selection number is the input by the user on the
screen:

*----------------------------------------------------------------------------------------------------------------------
| HV01HAAA :: PROBABILITY OF BEING SUCCESSFUL IN LAUNCHING ::::::::
| NO LOW LEVEL MENU SCREEN
| ::::::::: :::::::: :::::::: ::
| **** RANDOM DISTRIBUTIONS **** **** ROMAN NUMERALS THEORY ****
| SELECT NO. DESCRIPTION SELECT NO. DESCRIPTION
|
| 01 RANDOM NUMBERS 08 ROMAN ELECTION
| 02 QUANTUM EQUATIONS 09 ROMAN SET UP
| 03 INSURANCE MAINTENANCE 10 ROMAN MAINTENANCE
| 04 INSURANCE INQUIRY 11 ROMAN INQUIRY
| 05 PAYMENT MAINTENANCE
| 06 PAYMENT INQUIRY
| 07 PAYMENT UNELECT
|
|
|
|
|
|
|
|
| SELECTION NO: __
| :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
| :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*-------------------------------------------------------------------------------------------------------------------------

You might also like