How do you create a data set using an application program?

edit

How to create a data set using Application program i.e. by using Cobol? — Preceding unsigned comment added by 59.95.2.248 (talk) 14:23, 29 May 2006 (UTC)Reply

In MVS, an application can dynamically allocate a dataset using DYNALLOC (SVC 99). The routine BPXWDYN is a front end to DYNALLOC; I know of no reason that you couldn't call it from COBOL. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 13:30, 7 August 2025 (UTC)Reply
SVC 99 Which dates back to the original TSO.[1] -- Unsigned comment added by Guy Harris
More precisely, OS/360 added SVC 99, but MVS changed the interface[a] to it. The Dynamic Allocation Interface Routine (IKJDAIR) remained with its original interface. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:43, 8 August 2025 (UTC)Reply
Normally thru JCL. DD statement says “DISP=(NEW,CATLG) and open it as OUTPUT. Peter Flass (talk) 21:46, 7 August 2025 (UTC)Reply
The OP was asking about doing it in the application. JCL does static allocations prior to running the application. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 22:47, 7 August 2025 (UTC)Reply

Notes

  1. ^ In MVS, IBM documented the new SVC 99 as an official interface for customer use, as opposed to OS/360 and SVS, where IBM expcted customers to use the DAIR front end.

References

  1. ^ IBM System/360 Operating System: Time Sharing Option Terminal Monitor Program and Service Routines Program Logic Manual, Program Number 360S-£:1-555, OS Release 21.6 (PDF). IBM. p. 332. GY28-6770-2.

IBM mainframe data sets are not obsolete

edit

IBM mainframes, file systems, and data sets (the subject of this article), are widely used at the present time, March 2012, and will likely continue to be used for the near future. The tone of this article needs to be revised accordingly. While these are old file structures, dating from the 1970's, they continue to be used throughout the U.S.A. and everywhere else in the world! --FeralOink (talk) 11:17, 19 March 2012 (UTC)Reply

And the name data set (two words) is not archaic

edit

It is used also in current IBM documentation. Rob G Weemhoff 07:26, 19 March 2013 (UTC) — Preceding unsigned comment added by Rob G Weemhoff (talkcontribs)