You are on page 1of 4

o

1 LAB1 ASSESSMENT

Modules: COBOL, VSAM and JCL


Duration: 4 Hr.

LAB1 –Question ID: 1G

Login Note:

o Connect to IP Address 10.237.206.10 and Port 23.


o Logon using the MF ID provided, for the Lab Assessment

o Use password same as your User ID.

o Enter the new password – (8 characters combination of alphabetic and numeric).

o Read INSTRUCTIONS section to create the final deliverables.

<USERID> referred is the Mainframe TLAB ID provided to you.

STEP1: ISPF

o Allocate a PS dataset with the record length of 80, with naming convention as
below.

PS1 - <USERID>.L1G.BUS.PS1

Enter the below given records into PS1 file (<USERID>.L1G.BUS.PS1).

Note: 1st row contains the header details, which need not be entered in the PS file

Filler Details: - One space filler to be inserted between each field in the PS file.

STEP2: JCL

o Sort the records from the PS1 dataset in ascending order based on Bus_No
o Remove the duplicate records.

o Copy the sorted records into 2rd PS file of record length 80 with the naming
convention ‘<USERID>.L1G.BUS.PS2’(allocate it in the sort step in JCL).

STEP3: JCL

o Allocate a VSAM KSDS dataset with RECORDSIZE (80, 80) and KEYS (3, 0) with
naming convention as below.

VSAM Dataset - <USERID>.L1G.BUS.KSDS.

o Copy the records from PS2 dataset ‘<USERID>.L1G.BUS.PS2’ into VSAM


<USERID>.L1G.BUS.KSDS

STEP4: ISPF

o Allocate a PS file(Transaction file) using ISPF menu options with a record length
of 80 and with the below given naming convention,

PS3 - <USERID>.L1G.BUSTRN.PS3

Enter the below given records into it.

Filler Details: - One space between each field.

STEP 5: COBOL

Write a COBOL program to perform the following,

Input file to be used in the program: <USERID>.L1G.BUS.KSDS

Input transactions file to be used in the program: <USERID>.L1G.BUSTRN.PS3

o Read the records from the transaction PS file (PS3)


o If the data in the Operation field = ‘D’, delete the given record from the VSAM file

(Do this Check without using If condition).

o If Operation = ‘U’, update the given record in the VSAM file. ( Do this Check
without using If condition )
o After updating, write the updated records to Output PS4 file
<USERID>.L1G.BUSTRN.PS4 of record length 80 and below layout:

Filler Details: - One space between each field.


Compile and run the above COBOL program to achieve the results.

Note: Sample compile and run JCL is available in “TLABADM.LAB.SYS.COMPRUN”. Go in


view mode and copy the members to your deliverable dataset.

INSTRUCTIONS:

o Follow the proper coding standards


o Provide proper error handling routines.

o Place all the final deliverables into the PDS dataset : ‘<USERID>.<X>.<Y>.PDS’ .

Where X -> L1/L1AT1(L1 for first attempt, L1AT1 for second attempt) and

Y denotes 8 digit Batch name. Example: Y- CHNMJ001

[Example of L1 PDS - TLAB001.L1.CHNMJ001.PDS

L1AT1PDS- TLAB001.L1AT1.CHNMJ001.PDS] .

o For JCL’s, the member name should be “JA<x>1A<yyy>”

Note: Where <x> denotes the member no.(1 for 1st, 2 for 2nd member) and <yyy> denotes the
last 3 digits of your user ID.

o If each step is coded as a separate JCL, then the JCL members should be named
as “JA11A011”, “JA21A011” and so on.
o For COBOL Program, the member name should be “CA<x>1A<yyy>”

Note: Where <x> denotes the member no. (1 for 1st, 2 for 2nd member) and <yyy> denotes the
last 3 digits of your user ID.

If there are 2 members for a COBOL (Main program and sub program) created by
ID

TLAB001, the member name should be “CA11A001” and”CA21A001”.

EXPECTED DELIVERABLES in Mainframe PDS - <USERID>.L1MT.<Y>.PDS:

o JCL with STEP1, STEP2 and STEP3.


o COBOL program

o RUN JCL

EXPECTED DELIVERABLES to be uploaded:

o Upload all the expected deliverables as separate notepads in the mentioned area.
o Upload a notepad with name “<USERID>_DETAILS” and mention your Associate
ID and Lab Mainframe ID used in the assessment.

Available
Monday, 13 May 2013, 08:30 AM
from:

Due date: Monday, 13 May 2013, 12:30 PM

Submission draft
No files submitted yet
Upload files

You might also like