| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| kanitha-mvs Beginner
 
 
 Joined: 17 May 2006
 Posts: 26
 Topics: 17
 
 
 | 
			
				|  Posted: Thu Jul 09, 2009 4:14 am    Post subject: How DD name is mapped to File-control in cobol |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| dbzTHEdinosauer Supermod
 
 
 Joined: 20 Oct 2006
 Posts: 1411
 Topics: 26
 Location: germany
 
 | 
			
				|  Posted: Thu Jul 09, 2009 4:50 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Anuj Dhawan Intermediate
 
 
 Joined: 19 Jul 2007
 Posts: 298
 Topics: 7
 Location: Mumbai,India
 
 | 
			
				|  Posted: Thu Sep 17, 2009 1:27 am    Post subject: |   |  
				| 
 |  
				| Dick has given a correct direction, However, for my .02$... percept this as 	  | Code: |  	  | SELECT COB-FILE ASSIGN TO UT-S-XXX. | 
 DDname is common between COBOL program and JCL so that's where connectivity comes in. 	  | Code: |  	  | SELECT logical-file-name ASSIGN TO UT-S-DDname. | 
 
 In UT-S, "UT" is meant for "Utility-Only Access" and "S" for sequential. They are optional prefixes.
 _________________
 Regards,
 Anuj
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Thu Sep 17, 2009 3:01 pm    Post subject: |   |  
				| 
 |  
				|  	  | Anuj Dhawan wrote: |  	  | Dick has given a correct direction, However, for my .02$... percept this as 	  | Code: |  	  | SELECT COB-FILE ASSIGN TO UT-S-XXX. | 
 DDname is common between COBOL program and JCL so that's where connectivity comes in. 	  | Code: |  	  | SELECT logical-file-name ASSIGN TO UT-S-DDname. | 
 
 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 |  | 
	
		|  | 
	
		| Anuj Dhawan Intermediate
 
 
 Joined: 19 Jul 2007
 Posts: 298
 Topics: 7
 Location: Mumbai,India
 
 | 
			
				|  Posted: Wed Sep 23, 2009 4:04 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Wed Sep 23, 2009 11:16 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Anuj Dhawan Intermediate
 
 
 Joined: 19 Jul 2007
 Posts: 298
 Topics: 7
 Location: Mumbai,India
 
 | 
			
				|  Posted: Fri Sep 25, 2009 5:43 am    Post subject: |   |  
				| 
 |  
				| 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...
   
 Have a good one,
 _________________
 Regards,
 Anuj
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |