View previous topic :: View next topic
|
Author |
Message |
k.pavankumar
New User
Joined: 22 May 2006 Posts: 8
|
|
|
|
Hi People,
I have seen lots of Programs in Production, I have seen that in some programs, the select statement will be as follows:
SELECT ITEM-FILE ASSIGN TO UT-S-ITEM.
In the above statement what does it mean UT-S. I have seen the related JCL to that program I have found the DD name as Only ITEM.
I have also seen the following select also.
SELECT ITEM-FILE ASSIGN TO AS-ITEM.
Could any one help me in this regard.
Advance Thanks |
|
Back to top |
|
|
prashantshinde
New User
Joined: 25 Nov 2005 Posts: 49 Location: Pune
|
|
|
|
hi,
I don't know the meaning of first one . But in the second one the term AS-ITEM means there is file named ITEM is ESDS file.
We use 'AS ' suffix for ESDS files (only) to define in INPUT-OUTPUT section. |
|
Back to top |
|
|
ralph_v
New User
Joined: 07 Jul 2005 Posts: 27
|
|
|
|
UT-S is basically used to refer to TAPE datasets. |
|
Back to top |
|
|
calspach
New User
Joined: 05 May 2006 Posts: 32 Location: USA
|
|
|
|
Most installations don't require that you specify that anymore. At one time, as Ralph said they would signify if it was a tape, Dasd, or whatever. It doesn't hurt to leave them in however, the system will still find the file regardless now. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
UT-S is Unit Sequential (basically any QSAM dataset access). |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
As I recall this was dropped as a requirement prior to COBOLII and I'm certain that it wasn't required in COBOLII.
With the exception of AS- for ESDS files, the more recent versions of IBM's COBOL compiler do not use that designation anymore. |
|
Back to top |
|
|
karthi_ind
Active User
Joined: 24 Feb 2004 Posts: 131 Location: Chennai
|
|
|
|
The answer for you question is
SELECT INFILE ASSIGN TO UT-S-INFILE
OR
SELECT INFILE ASSIGN TO DA-S-INFILE
What they mean actually?
First part in DDNAME: - Device Class
UT stands for Utility (Tape or Sequential Disk)
DA stands for Direct-Access (disk)
Second part in DDNAME: - Method of Organization
S ? Sequential (Printer, terminal, disk or tape)
I, R, D ? Disk files to be accessed randomly |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
sachinbhavsar
New User
Joined: 15 Feb 2006 Posts: 9 Location: Stockholm,Sweden
|
|
|
|
Hi,
* I think UT-S is defining UTILITY SEQUENTIAL file.
* It may be PS or ESDS. |
|
Back to top |
|
|
|