Printing IMS data that is described by a
view descriptor is like printing any other
SAS data set, as shown in the following example:
options nodate linesize=120;
proc print data=vlib.wiredata;
title2 'Wire Transactions';
run;
The following output shows the output for the Vlib.WireData view descriptor.
Results of the PRINT Procedure
The SAS System
Wire Transactions
OBS SSN_ACCOUNT ACCOUNT_TYPE WIRE_DATE WIRE_TIME WIRE_AMOUNT WIRE_DESCRIPT
1 335-45-3451345620145345 C 03/31/95 15:42:43 1563.23 BAD CUST_SSN
2 434-62-1224345656336366 L 03/30/95 23:45:32 424.87 WIRED FROM SCNB 37262849393
3 156-45-5672345689435776 S 04/06/95 12:23:42 -150.00 WIRED TO BOA 9383627274
4 456-45-3462345620134522 C 04/06/95 13:12:34 -245.73 WIRED TO WELLS FARGO CHICAGO
5 234-74-4612345689413263 S 04/06/95 15:45:42 -238.73 WIRED TO WELLS FARGO SAN FRANCISCO
6 667-73-8275345620154633 S 03/31/95 15:42:43 1563.23 BAD ACCT_NUM
7 234-74-4612345620113263 C 04/06/95 11:12:42 1175.00 WIRED FROM SCNB 73653728343
8 156-45-5672345620123456 C 04/06/94 10:23:53 -136.29 WIRED TO SCNB 53472019836
9 156-45-5672345620123456 C 04/06/95 9:35:53 1923.87 WIRED FROM CIBN 37284839328
10 434-62-1224345620134564 C 04/06/95 13:23:52 -284.42 WIRED TO TVNB 837362636438
11 667-73-8275345689454633 C 03/28/95 15:42:43 1563.23 BAD ACCT_NUM
When you use the PRINT procedure, you might want to take advantage of the OBS= and
FIRSTOBS=
data set options. The OBS= option enables you to specify the last
observation to be processed; the FIRSTOBS= option enables you to specify the first. The options
are not valid with any form of the WHERE expression. The OBS= option improves performance
when the view descriptor describes a large amount of data and you just want to see
an example of the output.
Because each record must still be read and its position calculated, using the FIRSTOBS=
option does not improve performance significantly. The POINT= and KEY= options of
the MODIFY and SET statements are not currently supported by the IMS
engine.
The following example uses the OBS= data set option to print the first five observations
of data described by the view descriptor Vlib.WireData, which describes the WIRETRAN
segment of the
IMS database WireTrn:
options nodate linesize=120;
proc print data=vlib.wiredata(obs=5);
title2 'First Five Observations Described by
Vlib.WireData';
run;
The following table
shows the result of this example.
Results of Using the FIRSTOBS= Option
The SAS System
First Five Observations Described by VLIB.WIREDATA
OBS SSN_ACCOUNT ACCOUNT_TYPE WIRE_DATE WIRE_TIME WIRE_AMOUNT WIRE_DESCRIPT
1 335-45-3451345620145345 C 03/31/95 15:42:43 1563.23 BAD CUST_SSN
2 434-62-1224345656336366 L 03/30/95 23:45:32 424.87 WIRED FROM SCNB 37262849393
3 156-45-5672345689435776 S 04/06/95 12:23:42 -150.00 WIRED TO BOA 9383627274
4 456-45-3462345620134522 C 04/06/95 13:12:34 -245.73 WIRED TO WELLS FARGO CHICAGO
5 234-74-4612345689413263 S 04/06/95 15:45:42 -238.73 WIRED TO WELLS FARGO SAN FRANCISCO
For more information
about the PRINT procedure, see Base SAS Procedures Guide and SAS Language Reference: Concepts. For more information about the OBS= and FIRSTOBS=
options, see SAS Data Set Options: Reference.