Question
Write a cobol program making use of the redefine clause?

Answers

- The redefine clause is used to represent different data types by the same storage locations.
- For example, a program to show the implementation of the redefine clause:
identification division
program-id. Redef
environment division
data division
working-storage section
01 a pic 9(3) value 125
01 r pic 9(2) redefines a
procedure division
p-1
display(1 1) erase
display(5 5) "The value of r is = " r
stop run
- The above code on execution would give :
The value of r is = 12.
This was done by redefining a variable.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q How do users interact with the shell in apache pig?
  • Q Where did Krishna shift his people from Mathura?
  • Q What are the New Job Postings from the Company or Organization, Rehabilitation Plantations Limited (RPL) ?
  • Q What is Investment?
  • Q What is use of $routeprovider in angular js?
  • Q What is the advantage of using #define to declare a constant?
  • Q What is Reconciliation Accounts
  • Q what protocol is used by a machine to map an ip to hardware address
  • Q How do you indicate where a component will be positioned using Flowlayout? 1) North, South,East,West 2) Assign a row/column grid reference 3) Pass a X/Y percentage parameter to the add method 4) Do nothing, the FlowLayout will position the component
  • Q The second layer?
  • Q In a p-type semiconductor, Which are the majority charge carriers?