Sie sind auf Seite 1von 2

ISPF

1. Create a sequential dataset using ISPF with record length 90 and record format FB. Name of the
dataset should be <HLQ>.GET738.EMPLOYEE.DETAILS

2. Load the records manually as given below.

PSID FIRST NAME LAST NAME MOBILE EMAIL ID


NUMBER
9(08) X(15) X(15) 9(10) X(30)
10653750 ANJALI N 9876543210 ANJALI@MAIL.COM
10653751 ANJANA TR 9876543211 ANJANA@MAIL.COM
10653752 ANUSHA VINOD 9876543212 ANUSHA@MAIL.COM
10653753 APARNA BHAT 9876543213 APARNA@MAIL.COM
10653754 BHARATH KUMAR 9876543214 BHARATH@MAIL.COM
10653755 ASHWINI BHAT 9876543215 ASHWINI@MAIL.COM
10653756 GAGAN NAGARAJ 9876543216 GAGAN@MAIL.COM
10653757 GEETHA G 9876543217 GEETHA@MAIL.COM
10653758 KAVYA KUMARASWAMY 9876543218 KAVYA@MAIL.COM
10653759 KIRTI KASHYAP 9876543219 KIRTI@MAIL.COM
10653760 SINDHU MK 9876543220 SINDHU@MAIL.COM
10653761 MANAS KASHYUP 9876543221 MANAS@MAIL.COM
10653762 PRATIKSHA SUMAN 9876543222 PRATIKSHA@MAIL.COM
10653763 PRIYA P 9876543223 PRIYA@MAIL.COM
10653764 PRIYANKA SOMAN 9876543224 PRIYANKA@MAIL.COM

Note: There is a blank space between the fields. DO NOT enter the field name and data type. Enter only
the records.

JCL

3. Write a cataloged procedure(Name of the member must be CTPRCTRY) with the following steps

Step 1: Delete all the output datasets. Use symbolic as OUTDS

Step 2: Create an output dataset with lrecl=90 and recfm=fb and use symbolic as OUTDS for DSN

Step 3: Use IEBGENER to copy records from SYSUT1 to SYSUT2. Keep SYSUT1 as NULLFILE and use a
symbolic OUTDS for SYSUT2

Step 4: Use output of STEP 3 as input of STEP 4 and copy records into a temporary dataset TEMP01

Step 5: Now use temporary dataset TEMP01 as input and add title for each field as shown below and
print the output in SPOOL

PSID FIRST NAME LAST NAME MOBILE NUMBER EMAIL ID


Xxxxx Xxxxxx Xxxxxx Xxxxxx xxxxxx
4. Call the cataloged procedure CTPRCTRY.
a) The value for OUTDS should be <HLQ>.GET738.OUTPUT.DS with the attributes like that of
input dataset. (Use LIKE parameter).

b) Override the output dataset for procedure step 4 as <HLQ>.GET738.FORMATED and create it
with LRECL=90 and RECFM=FB

c) Override SYSUT1 of procedure step 3 and replace NULLFILE with input dataset name
<HLQ>.GET738.EMPLOYEE.DETAILS

Das könnte Ihnen auch gefallen