Sunteți pe pagina 1din 52

FILE MANAGER

File Manager

2009 Wipro Ltd - Confidential

Background
File Manger is located on ISPF primary menu
Typing FM from the ISPF menu takes us to the following screen.
Process Options Help
-----------------------------------------------------------------------------File Manager
Primary Option Menu
Command ===>
0
1
2
3
4
5
6
7
X

Settings
Set processing options
User ID . : DCSAYA
Browse
Browse data
System ID : MVS5
Edit
Edit data
Appl ID . : FMN
Utilities Perform utility functions
Version . : 3.1.0
Tapes
Tape specific functions
Terminal. : 3278
Disk/VSAM Disk track and VSAM CI functions
Screen. . : 1
OAM
Work with OAM objects
Date. . . : 2003/10/09
Templates Create, edit, or update templates
Time. . . : 03:09
Exit
Terminate File Manager

F1=Help

F3=Exit

F10=Actions F12=Cancel

2009 Wipro Ltd - Confidential

Features of File Manager

Browsing the dataset


Editing the dataset
Utilities

Creating dataset
Copying datasets
Catalog Services (Inquire/Define)
Global Find/Change
Compare Data

2009 Wipro Ltd - Confidential

Browsing the Datasets


To browse the dataset in FM, select option 1 from the primary option main screen
Process Options Help
-----------------------------------------------------------------------------File Manager
Primary Option Menu
Command ===> 1
0
1
2
3
4
5
6
7
X

Settings
Set processing options
User ID . : DCSAYA
Browse
Browse data
System ID : MVS5
Edit
Edit data
Appl ID . : FMN
Utilities Perform utility functions
Version . : 3.1.0
Tapes
Tape specific functions
Terminal. : 3278
Disk/VSAM Disk track and VSAM CI functions
Screen. . : 1
OAM
Work with OAM objects
Date. . . : 2003/10/09
Templates Create, edit, or update templates
Time. . . : 05:04
Exit
Terminate File Manager

F1=Help

F3=Exit

F10=Actions F12=Cancel

2009 Wipro Ltd - Confidential

Browse dataset with mapping to existing


copybook layout
q

Browsing dataset with out selection criteria

To browse the dataset with mapping to existing copybook layout


Process Options Help
-----------------------------------------------------------------------------File Manager
Browse Entry Panel
Command ===>
Input Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCSTEST.DCSAYA.INPFILE1'
Member . . . . . . . .
Blank or pattern for member list
Volume serial . . . . .
If not cataloged
Starting position . . .
Key,Slot,RBA,Record

Input File name comes here

Copybook or Template:
Data set name . . . . . 'DCSTMIR.DEFERRAL.COPYLIB'
Member . . . . . . . . DEDX02LK Blank or pattern for member list

Copybook name comes here


Processing Options:
Copybook/template usage
Enter "/" to select option
1 1. Above
Edit template
Select 1 from the
2. Previous
Processing Options
3. None
4. Create dynamic
F1=Help

F3=Exit

F10=Actions F12=Cancel

2009 Wipro Ltd - Confidential

Browse dataset with mapping to existing


copybook layout
With the above options, FM will display all the records(CHAR format) as shown
below.

Process Options Help


------------------------------------------------------------------------------File Manager Browse DCSTEST.DCSAYA.INPFILE1
Command ===>
Scroll CSR
Record 1
Col 1
Format CHAR
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--BARCHC650595W...#000000456
2003-10-09
A
BARCHC650595W....004860877
2003-10-09
A
BKOHLS650259W....606060606
2003-10-09
A
BTENCO650857W..&.019781139
2003-10-09
A
BARCHC650595W....041500671
2003-10-09
A
BARCHC650595W....041500671
2003-10-09
A
BCITUT650804W....001321962
2003-10-09
A
BCSCDE522548W....008487234
2003-10-09
4
BCITUT650804W....001321962
2003-10-09
A
BCITUT650804W....024587717
2003-10-09
A
**** End of data ****

q
q
q
q
6

Change display format here

Use PF Keys <F10> and <F11> to scroll left and right and <F7>/<F8> to scroll
up and down.
To change the screen display from CHAR format to SINGLE record format change
the FORMAT (Right Top Corner) from CHAR to SNGL (Changing the first byte to S
will also serve the purpose). Screen display from CHAR from to TABLE format
can be done by changing the FORMAT from CHAR to TABL or the first byte to T.
Display formats can be changed from one format to another by changing the
FORMAT.
If you were viewing the data in CHAR format and now changed to TABL, you can
go back to the previous format by pressing PF Key <F2>
2009 Wipro Ltd - Confidential

Browse dataset with mapping to existing


copybook layout
With the above options, FM will display all the records and maps each fields in
the copybook to the corresponding fields (TABL format) in the file as shown below.

Process Options Help


------------------------------------------------------------------------------Change display format here
File Manager Browse DCSTEST.DCSAYA.INPFILE1
Command ===>
Scroll CSR
Record 1
Format TABL
DEDX02-ORIGIN-CD DEDX02-CLIENT-ID DEDX02-PLAN-NBR DEDX02-FILE-SET-CD Records can also be viewed
by selecting the
#3
#4
#5
#6
particular number here
AN 1:1
AN 2:5
AN 7:6
AN 13:1
<--->
<---+>
B
ARCHC
650595
W
B
ARCHC
650595
W
B
KOHLS
650259
W
B
TENCO
650857
W
B
ARCHC
650595
W
B
ARCHC
650595
W
B
CITUT
650804
W
B
CSCDE
522548
W
B
CITUT
650804
W
B
CITUT
650804
W
**** End of data ****

2009 Wipro Ltd - Confidential

Browse dataset with mapping to existing


copybook layout
With the above options, FM will display a single record and maps each fields in
the copybook to the corresponding field (SNGL format) in the file as shown below.

Process Options Help


------------------------------------------------------------------------------File Manager Browse DCSTEST.DCSAYA.INPFILE1
Command ===>
Scroll CSR
Format SNGL
Top Field is 1 of 3137 in Record 1
Field
Data
DEDX02-ORIGIN-CD
B
DEDX02-CLIENT-ID
ARCHC
DEDX02-PLAN-NBR
650595
DEDX02-FILE-SET-CD
W
DEDX02-INTRNL-PRSN-ID
123
DEDX02-EXTERNAL-ID
000000456
DEDX02-PRICE-DATE
2003-10-09
DEDX02-STATUS-CHECK
FILLER
DEDX02-SRC-IN(1)
A
DEDX02-TYPE-IN(1)
P
DEDX02-RQST-IN(1)
S
DEDX02-PCT-IN(1)
10.000
DEDX02-DOL-IN(1)
0.00
F1=Help
F2=Zoom
F3=Exit
F5=RFind F10=Previous F11=Next

2009 Wipro Ltd - Confidential

Change display format here

Browse dataset with mapping to existing


copybook layout
Browsing dataset with selection criteria
File manager provides very flexible way to select particular records by specifying
the conditions to select the records or filter the records.
Process Options Help
-----------------------------------------------------------------------------File Manager
Browse Entry Panel
Command ===>

Input File name comes here

Input Partitioned, Sequential or VSAM Data Set:


Data set name . . . . . 'DCSTEST.DCSAYA.INPFILE1'
Member . . . . . . . .
Blank or pattern for member list
Volume serial . . . . .
If not cataloged
Starting position . . .
Key,Slot,RBA,Record
Copybook or Template:
Data set name . . . . . 'DCSTMIR.DEFERRAL.COPYLIB'
Member . . . . . . . . DEDX02LK Blank or pattern for member list
Processing Options:
Copybook/template usage
1 1. Above
/
2. Previous
3. None
4. Create dynamic

Copybook name comes here

Select 1 from the


Processing options
Enter "/" to select option
Edit template

Select by putting / here

2009 Wipro Ltd - Confidential

Browse dataset with mapping to existing


copybook layout
The Field selection/Edit screen will be displayed. All the fields in the copybook
specified will be displayed on this screen along with field details like Type,
Starting position, and length. Each field in the copybook will be tagged with
reference number, which is used in selection criteria.
Process Options Help
-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===>
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 DEDX02-LINKAGE-AREA
AN
1 10844
2
2 DEDX02-INPUT-AREA
AN
1 3203
3
3 DEDX02-ORIGIN-CD
AN
1
1
4
3
DEDX02-CLIENT-ID
AN
2
5
Reference
Number
---------------------- Record Identification Criteria -------------------------

------------------------ Record Selection Criteria ----------------------------

Use PF KEYS <F7> and <F8> to scroll the page up and down to view all the fields.

10

2009 Wipro Ltd - Confidential

10

Browse dataset with mapping to existing


copybook layout
There are two ways to specify the selection criteria on Field selection panel.
o
Enter option 2 (Specify Record Selection by Field) on the command line

Process Options Help


-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===> 2
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 DEDX02-LINKAGE-AREA
AN
1 10844
2
2 DEDX02-INPUT-AREA
AN
1 3203
3
3 DEDX02-ORIGIN-CD
AN
1
1
4
3 DEDX02-CLIENT-ID
AN
2
5
---------------------- Record Identification Criteria -------------------------

------------------------ Record Selection Criteria ----------------------------

This will take you to record selection screen where you specify the conditions

11

2009 Wipro Ltd - Confidential

11

Browse dataset with mapping to existing


copybook layout
Here you can specify the record selection conditions.
Process Options Help
------------------------------------------------------------------------------File Manager Edit Record Selection Criteria
Line 1 of 15
Command ===>
Scroll CSR
Cmd Con ( Field Name
Op Value
*** **** Top of data ****
DEDX02-LINKAGE-AREA
AND DEDX02-INPUT-AREA
AND DEDX02-ORIGIN-CD = 'B'
AND DEDX02-CLIENT-ID
AND DEDX02-PLAN-NBR
AND DEDX02-FILE-SET-CD
AND DEDX02-INTRNL-PRSN-I = 123
AND DEDX02-EXTERNAL-ID

To select all the record with DEDX02-ORIGIN-CD = B and DEDX02-INTRNL-PRSN-I = 123,


enter = in OP field, enter Bnon-numeric field) against DEDX02-ORIGIN-CD and
123(numeric) against DEDX02-INTRNL-PRSN-I.
You can use different operand like >=,<>,<= etc in OP field to satisfy your selection
conditions.
You can also set the BOOLEAN OR AND conditions by specifying them against Con of
each field.
Press <F3> to go back to Field selection/edit screen.

12

2009 Wipro Ltd - Confidential

12

Browse dataset with mapping to existing


copybook layout
If you observe the screen now, you will see some expression generated under Record
Selection Criteria. This expression is generated using the condition you just
specified in previous screen.
Process Options Help
-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===>
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 DEDX02-LINKAGE-AREA
AN
1 10844
2
2 DEDX02-INPUT-AREA
AN
1 3203
3
3 DEDX02-ORIGIN-CD
AN
1
1
4
3 DEDX02-CLIENT-ID
AN
2
5
---------------------- Record Identification Criteria -------------------------

------------------------ Record Selection Criteria ----------------------------

#3 = 'B' & #7 = 123

#3

represents DEDX02-ORIGIN-CD and #7 represents DEDX02-INTRNL-PRSN-I. These #3 & #7 are


the Reference Numbers tagged in front of each field of the Copybook.
Press <F3> to view the Dataset. This will POPUP the Template Save Screen.
13

2009 Wipro Ltd - Confidential

13

Browse dataset with mapping to existing


copybook layout
Here

you can specify the dataset and member name where you want to save the
template. If you save the Template in dataset, you can use that template
whenever you want to view the dataset with the selection criteria. This will
save your time in re-typing the selection criteria.

Command ===>

To discard changes to your template, press PF12/Cancel.


To use changes without saving, press PF10/RunTemp.

Dataset where you want to


save the template

To save changes, type a data set and member name below, then
press name if PDS
Member
PF3/Exit.
Data set name 'DCSTEST.DCSAYA.COPYLIB'
Member . . . NEWFILE

14

Press <F10> to view the file without saving the template.


Press <F3> to view the Dataset and retain the template file.

2009 Wipro Ltd - Confidential

14

Browse dataset with mapping by creating


dynamic copybook layout
This feature of FM allows user to create their own copybook layout and
can be used to browse the data in file as required.

Process Options Help


-----------------------------------------------------------------------------File Manager
Browse Entry Panel
Command ===>
Input Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCSTEST.DCSAYA.INPFILE2'
Member . . . . . . . .
Blank or pattern for member list
Volume serial . . . . .
If not cataloged
Starting position . . .
Key,Slot,RBA,Record

Dataset where you want to


save the template

Copybook or Template:
Data set name . . . . . 'DCSTMIR.DEFERRAL.COPYLIB'
Member . . . . . . . . DEDX02LK Blank or pattern for member list

Member name if PDS

Select 4 from the


Processing options
Processing Options:
Copybook/template usage
Enter "/" to select option
4 1. Above
Edit template
2. Previous
3. None
4. Create dynamic

This option allows user to create a copybook template to browse that dataset.
The template created dynamically can be saved in dataset and can be used for later
reference.
15

2009 Wipro Ltd - Confidential

15

Browse dataset with mapping by creating


dynamic copybook layout

Enter the fields starting position, length and data type as shown above to create
dynamic copybook as needed. This will select 1 3
char, 4 2 Char from the
input file.
Process Options Help
------------------------------------------------------------------------------File Manager Edit Dynamic Template
Line 1 of 16
Command ===>
Scroll CSR
1 Edit template field attributes and selection
Cmd Con ( Start Length Type Op Value
*** **** Top of data ****
AND 1
AND 4
AND
AND
AND

3
2

AN
AN

Additionally you can give the conditions also(using Con, OP, Value to select
particular records.

Press <F3>. In Template Save menu, enter dataset to save the copybook or
Press <F10> to run from temp.

16

2009 Wipro Ltd - Confidential

16

Browse dataset with mapping by creating


dynamic copybook layout
Using this feature of FM, we can restructure the file layout and
browse the file as needed.

Process Options Help


------------------------------------------------------------------------------File Manager Browse DCSTEST.DCSAYA.INPFILE2
Command ===>
Scroll CSR
Format SNGL
Top Field is 1 of 2 in Record 1
Field Data
@@DT2 BAR
@@DT3 CH
**** End of record ****

17

2009 Wipro Ltd - Confidential

17

Browse dataset having multiple record layout

We can the browse the multi record layout file by selecting the each record
layout independently.
For example, if the input file is having 3 record types (Header Record, Detail
record and Trailer record), each record type can be browsed with mapping to
corresponding record layout in the copybook.
Process Options Help
-----------------------------------------------------------------------------File Manager
Browse Entry Panel
Command ===>

Input File Name

Input Partitioned, Sequential or VSAM Data Set:


Data set name . . . . . 'DCSTEST.DCSAYA.INPFILE2'
Member . . . . . . . .
Blank or pattern for member list
Volume serial . . . . .
If not cataloged
Starting position . . .
Key,Slot,RBA,Record

Input Copybook Name


Copybook or Template:
Data set name . . . . . 'DCSTMIR.DEFERRAL.COPYLIB'
Select
1 or
aspattern
processing
Member . . . . . . . . DEDX02LK
Blank
for member list

options
Processing Options:
Copybook/template usage
Enter "/" to select option
1 1. Above
/ Edit template
2. Previous
3. None
4. Create dynamic

18

Select by putting /

2009 Wipro Ltd - Confidential

18

Browse dataset having multiple record layout


In Field selection screen we can select the different record layout with in the
copybook. For DEDX02LK copybook, in order to select the input area records with
corresponding mapping to its layout, enter S under CMD in front of
corresponding header fields as shown below.

Process Options Help


-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===>
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 DEDX02-LINKAGE-AREA
AN
1 10844
S
2
2 DEDX02-INPUT-AREA
AN
1 3203
S
3
3 DEDX02-ORIGIN-CD
AN
1
1
S
4
3 DEDX02-CLIENT-ID
AN
2
5
---------------------- Record Identification Criteria -------------------------

Select by putting S under


Cmd
------------------------ Record Selection Criteria ----------------------------

Hit enter to select the fields. Press <F8> to scroll down and select
all the fields with in the Header layout.

19

2009 Wipro Ltd - Confidential

19

Browse dataset having multiple record layout


Once all the fields are selected, enter 1 con command prompt to specify the record
identification. Specify the linkage area record identification as shown below:

Process Options Help


------------------------------------------------------------------------------File Manager Edit Record Identification Criteria
Line 1 of 15
Command ===>
Scroll CSR
Cmd Con ( Field Name
Op Value
*** **** Top of data ****
DEDX02-LINKAGE-AREA
AND DEDX02-INPUT-AREA
AND DEDX02-ORIGIN-CD = 'B'
AND DEDX02-CLIENT-ID
AND DEDX02-PLAN-NBR

Press <F3>, and in template Save screen, as mentioned earlier either you can save the
template or just run from temp.
Similarly we can browse return area record with corresponding to layouts. Just select
the corresponding fields in Field selection screen as shown before.
Also we can specify record selection criteria to select required records under each
layout as we do for any normal file.

20

2009 Wipro Ltd - Confidential

20

Editing the datasets


To edit the dataset in FM, select option 2 from the
primary option main screen

Using the Edit feature of FM we can edit the dataset with :

Mapping to existing copybook layout or without layout.

Mapping by creating dynamic copybook layouts.

Mapping multiple record layouts.

All these functions are similar to browse option. Please refer the
browse selection above for details.

21

2009 Wipro Ltd - Confidential

21

Utilities : Creating new dataset


Select
Select

option 3 from primary option menu for Utilities Function


option 1 from Utility Function menu to create new dataset

Process Options Help


-----------------------------------------------------------------------------File Manager
Utility Functions
Command ===> 1
0 DBCS
Set DBCS data format for print
1 Create
Create data
2 Print
Print data
3 Copy
Copy data
4 Dslist
Catalog services
5 VTOC
Work with VTOC
6 Find/Change Search for and change data
7 AFP
Browse AFP data
8 Storage
Browse user storage
9 Printdsn
Browse File Manager print data set
10 Loadlib
View load module information
11 Compare
Compare data
12 Audit trail Print audit trail report

Using the file manager Create option you can either create new dataset using COBOL
record layouts to initialize each field or regular dataset with out any layout.

22

2009 Wipro Ltd - Confidential

22

Creating dataset with mapping COBOL


record layout
In Data Create Utility
member name and number

menu, enter the new dataset name, copybook dataset name and
of input record as shown below

Process Options Help


-----------------------------------------------------------------------------File Manager
Data Create Utility
Command ===>
More: +
Output Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCSTEST.DCSAYA.TESTFILE'
Member . . . . . . . .
(Blank or pattern for member list)
Volume serial . . . . .
(If not cataloged)
Record length . . . . .
Optional record length for RECFM V
Records . . . . . . . . 1900
number of records
Fillchar . . . . . . .
char or hex value, AN, BIN, or RAND
Key position . . . . .
if sequence field desired
Key length . . . . . .
length from 1 to 9
Key increment . . . . .
increment value
Copybook or Template:
Data set name . . . . . 'DCSTEST.DCSAYA.COPYLIB'
Member . . . . . . . . CK01
(Blank or pattern for member list)
Processing Options:
Disposition
Copybook or template
Enter "/" to select option
1 1. Old/Reuse 1 1. Above
Edit template
2. Mod
2. Previous
Batch execution

23

2009 Wipro Ltd - Confidential

23

Creating dataset with mapping COBOL


record layout

In

the above screen mention all the dataset attributes as shown and press <Enter>.
This will create the file with 1900 records in the file..
Process Options Help
-----------------------------------------------------------------------------Allocate DCSTEST.DCSAYA.TESTFILE
Command ===>
More: +
Specify a model data set, SMS class names, or leave blank for defaults:
Like data set . .
Volume serial . .
Data class . . .
leave blank for default
Storage class . .
leave blank for default
Management class
leave blank for default
Space Requirements:
Space unit . . . TRKS
BLKS, TRKS, CYLS, KB, or MB
Primary units . . 10
quantity of above units
Secondary units . 10
quantity of above units
Directory blocks 10
leave blank for SMS default
Record format . . FB
if new format: U,F,V, or D, with B,S,A,M
Record length . . 100
Block size . . . 1000
physical output block size
Library type . .
LIBRARY, PDS, or blank for default
Release unused .
enter YES to free unused space, else NO

24

2009 Wipro Ltd - Confidential

24

Creating dataset with initializing few fields from


Copybook record layout.
File Manager allows you to create a file by initializing the required fields from
any copybook layout.
For example, if you want to create a dataset with CK-COMPANY-NO
field from CK01 copybook initialized.

25

Process Options Help


-----------------------------------------------------------------------------File Manager
Data Create Utility
Function terminated
Command ===>
More: +
Output Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCSTEST.DCSAYA.TESTFILE'
Member . . . . . . . .
(Blank or pattern for member list)
Volume serial . . . . .
(If not cataloged)
Record length . . . . . 100
Optional record length for RECFM V
Records . . . . . . . . 1900
number of records
Fillchar . . . . . . .
char or hex value, AN, BIN, or RAND
Key position . . . . .
if sequence field desired
Key length . . . . . . 8
length from 1 to 9
Key increment . . . . . 10
increment value
Copybook or Template:
Data set name . . . . . 'DCSTEST.DCSAYA.COPYLIB'
Member . . . . . . . . CK01
(Blank or pattern for member list)
Processing Options:
Disposition
Copybook or template
Enter "/" to select option
1 1. Old/Reuse 1 1. Above
/ Edit template
2. Mod
2. Previous
Batch execution

Select by putting /

Enter 6 for non-VSAM dataset as shown above.


Enter the dataset attributes. Enter record length etc.
Press <Enter>, now you get Field Selection/Edit screen.
2009 Wipro Ltd - Confidential

25

Creating dataset with mapping COBOL


record layout
Here

you can select the required fields by enter S in front of the fields.

Process Options Help


-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===>
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 FILEMANAGER-DEFAULT-01
AN
1 1140
2
2 CK-KEY
AN
1 61
S
3
3 CK-COMPANY-NO
AN
1
6
4
3 CK-PAY-GROUP-NO
AN
7 12
---------------------- Record Identification Criteria -------------------------

Select fields by typing S


against Cmd

------------------------ Record Selection Criteria ----------------------------

Press enter after entering S in front of the field. Use <PF7> and <PF8> to scroll
up and down.

26

2009 Wipro Ltd - Confidential

26

Creating dataset with mapping COBOL


record layout
Process Options Help
-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===>
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 FILEMANAGER-DEFAULT-01
AN
1 1140
2
2 CK-KEY
AN
1 61
E
S 3
3 CK-COMPANY-NO
AN
1
6
4
3 CK-PAY-GROUP-NO
AN
7 12
---------------------- Record Identification Criteria -------------------------

Type E and press enter.


Type S
again
to unselect.
------------------------ Record Selection
Criteria
----------------------------

To unselect the fields, enter


After selecting the required

27

S again in front of the field and press <Enter>.


fields enter E in front of the selected field

2009 Wipro Ltd - Confidential

27

Creating dataset with mapping COBOL


record layout
This will take you to
Here you will specify
Press <F1> by placing

Field Attribute Screen.


the starting value of the field, pattern, Action etc.
the cursor against the desired field to get more info.

Process Options Help


-----------------------------------------------------------------------------File Manager
Field Attributes
Command ===>
Fixed Attributes:
Field name CK-COMPANY-NO
Type AN
Start 1
Length 6
Use Attributes:
Output width
Create Attributes:
Filler X
Action FX
Start character A
Pattern AN
Repeat user pattern

28

YES or NO

Press <F3> twice and in template save screen press <PF10> to run from the temp.

2009 Wipro Ltd - Confidential

28

Utilities: Copy records/fields between files


Using this feature:

qYou

can copy data between files regardless of


file format
qYou can use COBOL record layout to map fields
qYou can reformat fields, changing field definitions
and length
qYour TO dataset does not need to be pre allocated

Select 3 from Utility Function screen


and enter. This will take you to the Copy
Screen.

29

2009 Wipro Ltd - Confidential

29

Copying from one file to other file with out


mapping to layout.
This option is similar to regular copy. Here we copy from one exiting file to
another new file. You can also specify
the input file. To copy all records in
else specify the number of records you

Skip count to skip number of records from


the input file, specify copy count = ALL
want to copy.

Process Options Help


-----------------------------------------------------------------------------File Manager
Copy Utility
Command ===>
From Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCStest.dcsaya.PAYV.PMT0CKA3'
Member . . . . . . . .
(Blank or pattern for member list)
Volume serial . . . . .
Start key . . . . . . .
key or slot
Skip count . . . . . . 0
number of records to be skipped
Copy count . . . . . . ALL
number of records to be copied

Enter Input File from where you


want to copy the records.

Enter number of records to be


skipped here.
Enter number of records to be
copied here.

From Copybook or Template:


Data set name . . . . .
Member . . . . . . . .
(Blank or pattern
for member)
Enter
processing options as 2
for none and press <Enter>
Processing Options:
Copybook/template usage
Enter "/" to select option
2 1. Above
Edit template
2. None
Use REXX proc
3. Create dynamic
Ignore length mismatch

30

2009 Wipro Ltd - Confidential

30

Copying from one file to other file with out


mapping to layout.
Here you specify TO dataset name. If the TO dataset is already exist, then
enter Disposition = 2. If the TO dataset is new, enter Disposition = 1.
Option 2 will take you the through the process of creating the new file before
copying the ercords.
Process Options Help
-----------------------------------------------------------------------------Copy from DCSTEST.DCSAYA.PAYV.PMT0CKA3
Command ===>

The TO file where you want to


copy the records to.

To Partitioned, Sequential or VSAM Data Set:


Data set name . . . . . 'DCSTEST.DCSAYA.TEST.PMT0CKA3'
Select 1 for existing file.
Member . . . . . . . .
2 for new Files.
Volume serial . . . . .
Processing Options:
Disposition
Execution "/" options
1 1. Old or Reuse
Replace members
2. Mod
Batch execution

Press Enter to copy all the records from file to TO file.

31

2009 Wipro Ltd - Confidential

31

Copying from one file to other file with mapping


to layout.
Using this feature we can copy records from one file to other using selection criteria.
We can copy selected records from input the file by specifying the conditions
as we did to browse or Edit the file.
Process Options Help
-----------------------------------------------------------------------------File Manager
Copy Utility
Command ===>
From Partitioned, Sequential or VSAM Data Set:
Data set name . . . . . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3'
Member . . . . . . . .
(Blank or pattern for member list)
Volume serial . . . . .
Start key . . . . . . .
key or slot
Skip count . . . . . . 0
number of records to be skipped
Copy count . . . . . . ALL
number of records to be copied

Enter Input File from where you


want to copy the records.

Enter Copybook details here.

From Copybook or Template:


Data set name . . . . . 'DCSTEST.DCSAYA.COPYLIB'
Select 1 for Processing
options.
Member . . . . . . . . CK01
(Blank or pattern
for member)
Processing Options:
Copybook/template usage
Enter "/" to select option
1 1. Above
/ Edit template
2. None
Use REXX proc
3. Create dynamic
Ignore length mismatch

Select by putting /

Press <Enter>, this will take you to Field selection screen.

32

2009 Wipro Ltd - Confidential

32

Copying from one file to other file with mapping


to layout.
Enter 2 on the command prompt to specify the field selection.
Process Options Help
-----------------------------------------------------------------------------File Manager
Field Selection/Edit
Command ===> 2
Scroll CSR
1 Specify Record Identification by field.
2 Specify Record Selection
by field.
Cmd Seq SHC Ref Rdf Field Name
Type Start Length
**** Top of data ****
1 1 FILEMANAGER-DEFAULT-01
AN
1 1140
2
2 CK-KEY
AN
1 61
3
3 CK-COMPANY-NO
AN
1
6
4
3 CK-PAY-GROUP-NO
AN
7 12
---------------------- Record Identification Criteria -------------------------

------------------------ Record Selection Criteria ----------------------------

Press <Enter>, this will take you to Field selection screen.

33

2009 Wipro Ltd - Confidential

33

Copying from one file to other file with mapping


to layout.
In record selection screen enter the selection criteria.
For example to copy all the input records with CK-COMPANY-NO = 001,
enter the condition as shown below and press <PF3>.

34

Process Options Help


------------------------------------------------------------------------------File Manager Edit Record Selection Criteria
Line 1 of 123
Command ===>
Scroll CSR

Cmd Con ( Field Name


Op Value
*** **** Top of data ****
FILEMANAGER-DEFAULTAND CK-KEY
AND CK-COMPANY-NO
= '001'
AND CK-PAY-GROUP-NO
AND CK-PAYEE-NO
AND CK-FORM-ID
AND CK-CHECK-NO

Once again press <PF3> and in template save screen press <PF10>.
Specify the TO Dataset name.
Continue with the process for copying as described earlier to copy all records with
CK-COMPANY- NO = 001
Please refer to IBM Manual for more options in File Manager COPY.

2009 Wipro Ltd - Confidential

34

Utilities: Catalog Services


q
q
q
q
q

List catalog entries


Define catalog entry
Display entry information
Alter catalog entry
Delete catalog entry

Select 4 on Utility Function screen to go


To the Catalog Services Menu.

35

2009 Wipro Ltd - Confidential

35

List the Catalog Entries


Enter the Dataset name and press enter to list the Catalog Entries.
Process Options Help
-----------------------------------------------------------------------------File Manager
Catalog Services
Command ===>
blank List catalog entries
DEF Define catalog entry
I Display entry information

A Alter catalog entry


DEL Delete catalog entry
P Print catalog entries

Data Set:
Data set name . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3'
Catalog ID . .
Processing Options:
Entry Type
3 1. Any
6. Cluster
2. Non-VSAM
7. Data
3. VSAM
8. GDG
4. AIX
9. Index
5. Alias
10. OAM

36

Input the
Dataset Name
here.

Select the type


of file by
choosing the
appropriate
Sort field
number.
11. Page space 1 1. Name
12. Path
2. Creation date
13. User catalog 3. Free space

2009 Wipro Ltd - Confidential

36

List the Catalog Entries


The Listing will be as shown below:
Process Options Help
------------------------------------------------------------------------------File Manager
Data Set List
Line 1 of 3
Command ===>
Scroll CSR
Catalog ID ''
Types ALLVSAM
--- Data Set Name --- sorted by NAME --- Entry Prim M Created
Command 1...5...10...15...20...25...30...35...40.... type volume V YYYY.DDD
DCSTEST.DCSAYA.PAYV.PMT0CKA3
KSDS
2003.265
DCSTEST.DCSAYA.PAYV.PMT0CKA3.DATA
DATA DVQ00A * 2003.265
DCSTEST.DCSAYA.PAYV.PMT0CKA3.INDEX
INDEX DVQ00A 2003.265
**** End of data ****

37

2009 Wipro Ltd - Confidential

37

Display the Entry Information


Enter the Dataset name, put I on Command Prompt and press enter to list the
Catalog Entries.

Process Options Help


-----------------------------------------------------------------------------File Manager
Catalog Services
Command ===> i
blank List catalog entries
DEF Define catalog entry
I Display entry information

A Alter catalog entry


DEL Delete catalog entry
P Print catalog
Select
the entries
type

Input the
Dataset Name
here.

of file by
choosing the
Data Set:
appropriate
Data set name . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3'
number.
Catalog ID . .
Processing Options:
Entry Type
3 1. Any
6. Cluster
2. Non-VSAM
7. Data
3. VSAM
8. GDG
4. AIX
9. Index
5. Alias
10. OAM

38

Sort field
11. Page space 1 1. Name
12. Path
2. Creation date
13. User catalog 3. Free space

2009 Wipro Ltd - Confidential

38

Display the Entry Information


The Entry Information will be displayed as shown below:
Process Options Help
-----------------------------------------------------------------------------File Manager
VSAM Entry Detail
Command ===>
VSAM Catalog Entry:
Data set name . . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3'
Catalog ID . . . . 'USERCAT.VDVQ303'
More: +
VSAM Associations:
VSAM data type . . KSDS
KSDS, ESDS, RRDS, VRRDS or LDS
Creation date . . 2003.265 Expiration date (NONE)
Data . . . . . . . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3.DATA'
Index . . . . . . 'DCSTEST.DCSAYA.PAYV.PMT0CKA3.INDEX'
AIX . . . . . . .
Data . . . . . .
Index . . . . .
Path . . . . . . .
SMS Definitions:

Use PF KEYS <F7> and <F8> to scroll the page up and down to view all the fields.
39

2009 Wipro Ltd - Confidential

39

Define a new Catalog Entry


Enter the Dataset name, put DEF on Command Prompt and press enter to define a new
Catalog Entry.
Process Options Help
-----------------------------------------------------------------------------File Manager
Catalog Services
Command ===> DEF
blank List catalog entries
DEF Define catalog entry
I Display entry information

A Alter catalog entry


DEL Delete catalog entry
P Print catalog entries

Input the
Dataset Name
here.

Select the type


Data Set:
of file by
Data set name . 'DCSTEST.DCSAYA.TEST.VSAM'
choosing the
appropriate
Catalog ID . .
number.

Processing Options:
Entry Type
3 1. Any
6. Cluster
2. Non-VSAM
7. Data
3. VSAM
8. GDG
4. AIX
9. Index
5. Alias
10. OAM

Sort field
11. Page space 1 1. Name
12. Path
2. Creation date
13. User catalog 3. Free space

Depending on the type of selection you have made, a popup window will come to enter the
type of Dataset (KSDS, ESDS,etc) you want to define.
40

2009 Wipro Ltd - Confidential

40

Define a new Catalog Entry


Enter the necessary details as required.
Use <PF7> and <PF8> keys to scroll Page up and down and then press enter when
you have entered all the details.
Process Options Help
-----------------------------------------------------------------------------File Manager
VSAM Define
Command ===>
VSAM Catalog Entry:
Data set name . . 'DCSTEST.DCSAYA.TEST.VSAM'
Catalog ID . . . .
More: +
VSAM Associations:
VSAM data type . . KSDS
Expiration date . (NONE)
Data . . . . . . .
Index . . . . . .
VSAM Cluster Attributes:
Key length . . . . 29
Key offset . . . . 0
CI size . . . . . 8192
size of the data control intervals
Buffer space . . . 20480
buffer space to be allocated at open time
Shr cross region . 3
cross system . . . 3
Reuse . . . . Y
Recovery . . . . . N
Spanned . . . . . N
Erase . . . . N
Writ .-----------------------------------------------------------.
VSAM Da | Press ENTER to define the catalog entry or EXIT to cancel |
Allo '-----------------------------------------------------------'

This will create a new VSAM entry.


41

2009 Wipro Ltd - Confidential

41

Altering an existing Catalog Entry


Enter the Dataset name, put A on Command Prompt and press enter to alter
an existing Catalog Entry.
Note : You can only alter a Catalog Entry if the Dataset is empty.
Process Options Help
-----------------------------------------------------------------------------File Manager
Catalog Services
Command ===> A
blank List catalog entries
DEF Define catalog entry
I Display entry information

A Alter catalog entry


DEL Delete catalog entry
P Print catalog entries

Data Set:
Data set name . 'DCSTEST.DCSAYA.TEST.VSAM'
Select the type
Catalog ID . .
Processing Options:
Entry Type
3 1. Any
6. Cluster
2. Non-VSAM
7. Data
3. VSAM
8. GDG
4. AIX
9. Index
5. Alias
10. OAM

Input the
Dataset Name
here.

of file by
choosing the
appropriate
number.
Sort field

11. Page space 1 1. Name


12. Path
2. Creation date
13. User catalog 3. Free space

This will create a new VSAM entry.


42

2009 Wipro Ltd - Confidential

42

Altering an existing Catalog Entry


Change the necessary details as required.
Use <PF7> and <PF8> keys to scroll Page up and down and then press enter when you
have entered all the details.
Process Options Help
-----------------------------------------------------------------------------File Manager
VSAM Entry Detail
Command ===>
VSAM Catalog Entry:
Data set name . . 'DCSTEST.DCSAYA.TEST.VSAM'
Catalog ID . . . . 'USERCAT.VDVQ303'
More: +
VSAM Associations:
VSAM data type . . KSDS
KSDS, ESDS, RRDS, VRRDS or LDS
Creation date . . 2003.283 Expiration date (NONE)
Data . . . . . . . 'DCSTEST.DCSAYA.TEST.VSAM.DATA'
Index . . . . . . 'DCSTEST.DCSAYA.TEST.VSAM.INDEX'
AIX . . . . . . .
Data . . . . . .
Index . . . . .
Path . . . . . . .
SMS Definitions:

This will alter the existing VSAM Catalog entry.

43

2009 Wipro Ltd - Confidential

43

Deleting an existing Catalog Entry


Enter the Dataset name, put DEL on Command Prompt and press enter to
delete an existing Catalog Entry.
Process Options Help
-----------------------------------------------------------------------------File Manager
Catalog Services
Command ===> DEL
blank List catalog entries
DEF Define catalog entry
I Display entry information

A Alter catalog entry


DEL Delete catalog entry
P Print catalog entries

Data Set:
Data set name . 'DCSTEST.DCSAYA.TEST.VSAM'
Select the type
Catalog ID . .
Processing Options:
Entry Type
3 1. Any
6. Cluster
2. Non-VSAM
7. Data
3. VSAM
8. GDG
4. AIX
9. Index
5. Alias
10. OAM

Input the
Dataset Name
here.

of file by
choosing the
appropriate
number.
Sort field

11. Page space 1 1. Name


12. Path
2. Creation date
13. User catalog 3. Free space

Pressing Enter will ask for a Confirmation. You can revoke the deletion by pressing <PF3>
or end.

44

2009 Wipro Ltd - Confidential

44

Utilities: Global Find/Change

q
q
q
q

Using this feature you can find and replace


string in dataset.
You can search both sequential and partitioned
dataset.
If you are searching in partitioned dataset you
can specify the member selection criteria as well.
File manager will search all selected member and
will replace matching string globally.

Select 6 on Utility Function screen to go


To the Find/Change Menu.

45

2009 Wipro Ltd - Confidential

45

Utilities: Global Find/Change


Enter dataset name and member selection criteria on Find/Change screen.
Here we have specified member = CK*, this will select all the members in the
Datasets starting with first character as CK
Process Options Help
-----------------------------------------------------------------------------File Manager
Find/Change Utility
Command ===>
Scroll CSR
Enter Input Dataset.
Input Partitioned, Sequential or VSAM Data Set: Enter member pattern here.
Data set name . 'DCSTEST.DCSAYA.COPYLIB'
Member . . . . . CK*
(Blank - selection, pattern - process list)
Volume serial .
(If not cataloged)
Listing data set . SRCHFOR.LIST
Enter "/" to select option
Listing Option
JCL Source format
Immediate change
1 1. Long
Use REXX proc
Batch execution
2. Summary
Process List:
Sel Name Prompt Size Created
Changed
ID
**** End of data ****

Press <Enter>, this will list all members in the dataset in the bottom.

46

2009 Wipro Ltd - Confidential

46

Utilities: Global Find/Change


Here you specify the search string on the command prompt. For example to find
all the CHECK string the dataset enter F RETURN on the command prompt
as shown below:
Process Options Help
-----------------------------------------------------------------------------File Manager
Find/Change Utility
Command ===> f check
Scroll CSR
Input Partitioned, Sequential or VSAM Data Set:
Data set name . 'DCSTEST.DCSAYA.COPYLIB'
Member . . . . . CK*
(Blank - selection, pattern - process list)
Volume serial .
(If not cataloged)
Listing data set . SRCHFOR.LIST
Enter "/" to select option
Listing Option
JCL Source format
Immediate change
1 1. Long
Use REXX proc
Batch execution
2. Summary
Member Listing from where the
Process List:
string will
be searched.
Sel Name Prompt Size Created given
ID
YouChanged
can also browse
the members
CK01 Selected 122 2003/04/28 2003/04/28
13:49:51
DCSRXK Sel
by putting
B against
the member.
CK011 Selected 122 2003/04/28 for
2003/04/28
13:49:51 DCSRXK
**** End of data ****

Press <Enter>, this will take you to Search Result Screen.

47

2009 Wipro Ltd - Confidential

47

Utilities: Global Find/Change


Menu Utilities Compilers Help
------------------------------------------------------------------------------BROWSE DCSTEST.SRCHFOR.LIST
Line 00000000 Col 001 080
Command ===>
Scroll ===> PAGE
********************************* Top of Data **********************************
IBM File Manager for z/OS and OS/390
Find/Change Listing DSN: DCSTEST.DCSAYA.COPYLIB
CK01
----- STRING(S) FOUND/CHANGED ----Record Number
6
05 CK-CHECK-NO
PIC 9(11).
7
05 CK-CHECK-DATE
PIC X(08).
41
05 CK-ORIG-CHECK
PIC 9(11).
118
05 CK-CHECK-NOTE1
PIC X(30).
119
05 CK-CHECK-NOTE2
PIC X(30).
120
05 CK-CHECK-NOTE3
PIC X(30).
121
05 CK-CHECK-NOTE4
PIC X(30).
122
05 CK-CHECK-NOTE5
PIC X(30).
CK011
----- STRING(S) FOUND/CHANGED ----Record Number
6
05 CK-CHECK-NO
PIC 9(11).
F1=Help F3=Exit F5=Rfind F12=Cancel

Using the same feature we can replace all the matching string to different string.
For example, if you want to replace all RETURN with END, Enter C ALL RETURN END

on
the command prompt.
This command will change all the occurrence of RETURN with END.
Press <PF3>, it will ask for the confirmation to save the changes or not. To save the
Changes just press <Enter>, to cancel the changes press <PF3>

48

2009 Wipro Ltd - Confidential

48

Utilities: Global Find/Change


Using the same feature we can replace all the matching string to different string.
For example, if you want to replace all RETURN with END,
Enter C ALL RETURN END on the command prompt.
This command will change all the occurrence of RETURN with END.
Press <PF3>, it will ask for the confirmation to save the changes or not.
To save the Changes just press <Enter>, to cancel the changes press <PF3>
Process Options Help
-----------------------------------------------------------------------------File Manager
Find/Change Utility
Command ===> c all return end
Scroll CSR
Input Partitioned, Sequential or VSAM Data Set:
Data set name . 'DCSTEST.DCSAYA.COPYLIB'
Member . . . . . PM*
(Blank - selection, pattern - process list)
Volume serial .
(If not cataloged)
Listing data set . SRCHFOR.LIST
Enter "/" to select option
Listing Option
JCL Source format
Immediate change
1 1. Long
Use REXX proc
Batch execution
2. Summary
Process List:
Sel Name Prompt Size Created
Changed
ID
PMT0CKCB Selected 121 2003/07/06 2003/07/06 23:51:25 DCSAYA
**** End of data ****

49

2009 Wipro Ltd - Confidential

49

Utilities: Compare Datasets


Using this feature:

qYou

can copy data between files regardless


of file format
qYou can use COBOL record layout to map fields
qYou can reformat fields, changing field
definitions and length

Select 3 from Utility Function screen


and enter to go to Compare Utility Menu

50

2009 Wipro Ltd - Confidential

50

Utilities: Compare Datasets


Just like Copy Utility, Compare Utilty
Provides:

q
q

Comparing one file to other file with out


mapping to layout.
Comparing one file to other file with
mapping to layout.

The Compare Utility works the same way as the


Copy Utility.
Please refer back to Copy Utility for full
Explanations.
51

2009 Wipro Ltd - Confidential

51

Thank You!

52

2009 Wipro Ltd - Confidential

52
38

S-ar putea să vă placă și