Search found 5 matches

by Ankit Gautam
Fri Oct 20, 2017 2:46 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: Suggestions for fresh graduate to train.
Replies: 2
Views: 464

Suggestions for fresh graduate to train.

Hi, We have some fresh engineering graduate joining our team. Our lead very dynamic and he has made a pretty good introduction to these fresh graduates to start their career with mainframes. He has now asked some os us to think some exercise to give these new graduates to work upon so that they can ...
by Ankit Gautam
Mon Dec 28, 2015 2:45 pm
Forum: Interview Questions.
Topic: Reverse the value in COBOL.
Replies: 2
Views: 411

Re: Reverse the value in COBOL.

Robert Sample wrote:There is the LENGTH function if you don't know the PIC clause value of the variable.

There is an intrinsic function REVERSE which could be used.

You could use reference modification instead of OCCURS to address the individual bytes.
Thanks Robert. :yes:
by Ankit Gautam
Mon Dec 28, 2015 2:44 pm
Forum: Interview Questions.
Topic: Convert from lower case to Upper case in COBOL.
Replies: 3
Views: 2571

Re: Convert from lower case to Upper case in COBOL.

Thanks for the answers. I even find a link stating the use of FUCNTION UPPER-CASE in an interesting way: UPPER-CASE & LOWER-CASE FUNCTIONS: If you want to compare two fields and you are not sure of what case the fields contain, you can look at the upper case version of both fields or the lower c...
by Ankit Gautam
Mon Dec 21, 2015 4:31 pm
Forum: Interview Questions.
Topic: Reverse the value in COBOL.
Replies: 2
Views: 411

Reverse the value in COBOL.

Hi, Another question which I face goes like this: I have a string of size 26. Basically it's the letters from alphabet. With value like "ABCDE....WXYZ". Now I want to display this variable in reverse direction like "ZYXW....EDCBA". I replied that we can do it using OOCURS. In whi...
by Ankit Gautam
Mon Dec 21, 2015 4:20 pm
Forum: Interview Questions.
Topic: Convert from lower case to Upper case in COBOL.
Replies: 3
Views: 2571

Convert from lower case to Upper case in COBOL.

Hi, Can we convert from lower case to Upper case in COBOL? I was not sure and I said yes. Then the interviewer said, well, then how do you code a COBOL program to do this? Without using any Functions? And with using built-in functions or Intrinsic functions? I have searched on it but this question s...

Go to advanced search