MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How DD name is mapped to File-control in cobol

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kanitha-mvs
Beginner


Joined: 17 May 2006
Posts: 26
Topics: 17

PostPosted: Thu Jul 09, 2009 4:14 am    Post subject: How DD name is mapped to File-control in cobol Reply with quote

Hi,

In most of the jobs, JCL is having a DD name and the cobol program has some prefix added to the DD present in JCL. How is this mapping done?

Eg: In jcl its like "XXX DD DSN=A1.EX.DSN, "
In FILE-CONTROL of cobol, its like

FILE-CONTROL.
SELECT COB-FILE ASSIGN TO UT-S-XXX.

Thanks.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Jul 09, 2009 4:50 am    Post subject: Reply with quote

perform a search on the programmers guide for your cobol version on the keyword assignment-name.

follow the links and read the explanations given.

This link will list all COBOL Manuals. Find the one for your cobol version and environment.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Thu Sep 17, 2009 1:27 am    Post subject: Reply with quote

Dick has given a correct direction, However, for my .02$... percept this
Code:
SELECT COB-FILE ASSIGN TO UT-S-XXX.
as
Code:
SELECT logical-file-name ASSIGN TO UT-S-DDname.
DDname is common between COBOL program and JCL so that's where connectivity comes in.

In UT-S, "UT" is meant for "Utility-Only Access" and "S" for sequential. They are optional prefixes.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 17, 2009 3:01 pm    Post subject: Reply with quote

Anuj Dhawan wrote:
Dick has given a correct direction, However, for my .02$... percept this
Code:
SELECT COB-FILE ASSIGN TO UT-S-XXX.
as
Code:
SELECT logical-file-name ASSIGN TO UT-S-DDname.
DDname is common between COBOL program and JCL so that's where connectivity comes in.

In UT-S, "UT" is meant for "Utility-Only Access" and "S" for sequential. They are optional prefixes.


huh? where did you get that definition? UT stands for Unit Transfer. for more information read here

http://www.mvsforums.com/helpboards/viewtopic.php?p=7137#7137
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Sep 23, 2009 4:04 am    Post subject: Reply with quote

Hi Kolusu,

I've never heard if "UT" stands for "Unit Transfer", what I know is

First part in DDNAME: - Device Class
UT stands for Utility (Tape or Sequential Disk, and they should be OPENed in input mode as far as COBOL goes)
DA stands for Direct-Access (disk)

Second part in DDNAME: - Method of Organization
S
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Sep 23, 2009 11:16 am    Post subject: Reply with quote

Anuj Dhawan,

I couldn't find the documentation which mentions UT as unit of transfer. I remember reading it as unit of transfer.

Anyway if any of the senior members know the exact definition it would be great

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Sep 25, 2009 5:43 am    Post subject: Reply with quote

Sure Kolusu, I look forward to that. Meanwhile if I found something on that I'll post here.

I know it's very trivial to know this in the time of Enterprise COBOL but sometimes curiosity kills you... Smile

Have a good one,
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group