how will u find out 3rd week's 2nd day using occurs ?

Answer Posted / shweta

01 WS-TEMP VALUE ZEROS.
03 WS-WEEK OCCURS 5 TIMES
05 WS-DAY PIC 9 OCCURS 7 TIMES


THE THIRD WEEK AND 2ND DAY CAN BE FOUND BY WS-TEMP(3,2)

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print 10 to 1 if the input have only 10 digit number?

810


How do you get the data to code the BMS macro?

1473


What is the difference between Call and a Link?

695


how do you reference the fixed unblock file formats from cobol programs

707


What is the difference between PIC 9.99 and 9v99 in COBOL?

729






here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6822


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5054


What are the different open modes available in cobol?

713


What is the difference between perform … with test after and perform … with test before?

877


What is a SSRANGE and NOSSRANGE?

818


how to access the file from prodution from changeman tool and to submit a file to production

6682


) how do u code after getting data?

1578


Which mode is used to operate the sequential file?

658


What is the local-storage section?

681


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228