give the examples of strings in cobol
Answer / sravani
using strings we can move a value from one variable to one or more variables.
01 a pic a(3) value 'new'.
01 b pic a(3).
p.division
string a delimited by size to b.
display b.
ans: new
| Is This Answer Correct ? | 2 Yes | 0 No |
Which mode is used to operate the sequential file?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?
BY seeing a program how can we say that it is static call or dynamic call
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
What are the various section in data division and briefly explain them.
How can we increase the size of an existing PDS to include more no. of modules.
Write down the divisions of cobol program?
i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2
how would find total records in files using seqientional
suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?
In COBOL "BEFORE" advancing is there or not ?