IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

want to create DS in cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manjinder

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Thu Jan 19, 2006 2:56 pm
Reply with quote

can anybody tell me how to create data set thru cobol programming. with
small example.

thanx in advance.
regard..
manjinder
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 19, 2006 3:17 pm
Reply with quote

Look for "cob2tso" in Google. This is an example of how to invoke TSO commands from COBOL. You can then use ALLOCATE to create new dataset.

O.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jan 19, 2006 5:00 pm
Reply with quote

Manjinder,

You would have find this discussed earlier, if made a proper search.

Regards.

Priyesh.
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Fri Jan 20, 2006 2:32 pm
Reply with quote

Hi manjider,
we can do it using the command (.*intrdr) command at run time
for this we have to assingn a file in cobol program
e.g. infile assigned to dd1
then write the JCl code for creating dataset using cobol syntax and at run time give *.intrdr at dd1
regards,
chandan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top