Discuss about changing dataset name in proc.



Discuss about changing dataset name in proc...

Answer / Jay Devi

In COBOL, you can change the dataset name within a program using the ALTER DATA SET SELECT statement. This statement allows you to specify a new dataset name for an open sequential or indexed file during runtime. Here is an example:

ALTER DATA SET SELECT NEW-DATASET-NAME ASSIGNING TO OLD-DATASET-NAME.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the use of LINKAGE SECTION?

1 Answers  


i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.

3 Answers  


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  


. How do we cast a variable in COBOL

1 Answers   HSBC,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


how to refer the data field?

1 Answers  


What is the use of intialize verb?

1 Answers  


In an array processing what is the thing that can be done by using subscripts but not by using index

4 Answers   JPMorgan Chase,


can we use variable picture clause as xx.99 in cobol.

3 Answers  


Categories