Search found 61 matches

by Prakash Jha
Mon Apr 22, 2024 4:24 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read multiple input passed in COBOL
Replies: 3
Views: 162
India

Re: read multiple input passed in COBOL

If there are more than parameters passed from JCL, how do we recieve them in LINKAGE? If they are separate variable and don't belong to each other but passed in together?
by Prakash Jha
Mon Apr 22, 2024 4:23 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Mainframe as a career.
Replies: 30
Views: 25390
India

Re: Mainframe as a career.

In between, starting from last October till Dec-Jan, there were good job, but seems like now again the market is down for job opening in mainframes.
by Prakash Jha
Mon Apr 22, 2024 2:14 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read a VSAM file from bottom to top and length of a string using COBOL?
Replies: 5
Views: 231
India

Re: read a VSAM file from bottom to top and length of a string using COBOL?

zum13Hello. COBOL does have an intrinsic function called LENGTH, which can be used like this: MOVE FUNCTION LENGTH(WA-INPUT-FIELD) TO WA-LENGTH This will give you the length of the alphanumeric field or group field defined in working storage. It won't do anything clever like working out the length ...
by Prakash Jha
Mon Apr 22, 2024 2:12 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read a VSAM file from bottom to top and length of a string using COBOL?
Replies: 5
Views: 231
India

Re: read a VSAM file from bottom to top and length of a string using COBOL?

Assuming you mean in reverse order when you say "from bottom to top" -- this cannot be done in Enterprise COBOL without adding a sequence number to the data set and sorting by the sequence number (descending). Repeat after me:  "COBOL DOES NOT HAVE STRINGS!"  Look at the PICTURE...
by Prakash Jha
Thu Apr 18, 2024 2:09 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read multiple input passed in COBOL
Replies: 3
Views: 162
India

read multiple input passed in COBOL

Hi,

How to read multiple input is passed by parm parameter from jcl in COBOL program?
by Prakash Jha
Thu Apr 18, 2024 1:51 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read a VSAM file from bottom to top and length of a string using COBOL?
Replies: 5
Views: 231
India

read a VSAM file from bottom to top and length of a string using COBOL?

Hi,

Can someone help me

1. How to read a VSAM file from bottom to top.
2. How to find the exact length of a string using COBOL?
by Prakash Jha
Sat Jan 02, 2021 10:27 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: VSAM to VSAM copy.
Replies: 1
Views: 1468
India

VSAM to VSAM copy.

Hi,

I was trying to copy VSAM to another VSAM like in SORTIN and SORTOUT just 'same VSAMs' but different names. However the output came as flat file rather than as VSAM. Can this not be done?
by Prakash Jha
Sat Jan 02, 2021 9:48 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Mainframe as a career.
Replies: 30
Views: 25390
India

Re: Mainframe as a career.

I think after an experience, in Indian market, every technology has similar situation for the Job, you are a liability to the company and they just don't want to pay you. But as such mainframes is enough stable career.
by Prakash Jha
Sat Jan 02, 2021 9:42 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Happy New year 2021!
Replies: 5
Views: 1907
India

Re: Happy New year 2021!

Happy New year.

Hope this year brings hope. :)
by Prakash Jha
Thu Dec 03, 2020 8:06 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Program compiled through 4.2 or 6.2?
Replies: 14
Views: 4141
India

Re: Program compiled through 4.2 or 6.2?

Thanks Robert.
(no support, either, but they don't usually need support).
Then how do they get it working, how they make the 'system level changes' happen?
by Prakash Jha
Sat Sep 05, 2020 7:23 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Program compiled through 4.2 or 6.2?
Replies: 14
Views: 4141
India

Program compiled through 4.2 or 6.2?

Hi, We are changing our COBOL compiler to COBOL 6.2. We were on COBOL 4.2. The path we are following is that we compile one program by one program. Now many times when a program we pick up from baseline to for new development, it's touch to know whether the program was installed with COBOl 6.2 or 4....
by Prakash Jha
Fri Feb 22, 2019 10:55 am
Forum: Interview Questions.
Topic: Define the definition of the COBOL Table.
Replies: 4
Views: 1729
India

Re: Define the definition of the COBOL Table.

I would say something like "WS-TABLE-DEF has 10 occurrences of WS-MAIN-TABLE. WS-MAIN-TABLE has 30 occurrences of WS-FIRST-CHILD, 20 occurrences of WS-SECOND-MAIN-TABLE, and 20 occurrences of WS-THIRD-MAIN-TABLE. WS-FIRST-CHILD in turn has 10 occurrences of WS-CHILD-CHILD." The table hier...
by Prakash Jha
Fri Feb 22, 2019 10:52 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: File is visible in both prod and test.
Replies: 9
Views: 2980
India

Re: File is visible in both prod and test.

Thanks all.

Hi Enrico,

I am reading the document you have shared and I might have some follow up question. Will post them.
by Prakash Jha
Tue Feb 12, 2019 11:01 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: File is visible in both prod and test.
Replies: 9
Views: 2980
India

Re: File is visible in both prod and test.

Thanks for you reply. I understand that there are many ways to do such set-up. I am just trying to understand that if this happens: 2. Why the file I create in test is visible in production? Or you mean to say that there can be many differnt configuration which can show such behavior and there is no...
by Prakash Jha
Tue Feb 12, 2019 2:16 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: File is visible in both prod and test.
Replies: 9
Views: 2980
India

Re: File is visible in both prod and test.

Thanks.

What I want to know is that when I am able to see the files on both regions that is Test and Production, does that mean that it is a single mainframe? And that means that it has got only one processor which is in use in both test and production?
by Prakash Jha
Mon Feb 11, 2019 11:41 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: File is visible in both prod and test.
Replies: 9
Views: 2980
India

File is visible in both prod and test.

Hi, I have joined a new company and the setup here is very different than what it was in my last company. When I login to my testing environment on mainframes, they call it as TSOD and I use my ID/password to login. I create my test files here. Now when I login to production TSOP, I need to logoff f...
by Prakash Jha
Mon Nov 12, 2018 11:17 am
Forum: Interview Questions.
Topic: Define the definition of the COBOL Table.
Replies: 4
Views: 1729
India

Define the definition of the COBOL Table.

Hi, Interviewer gave me this definition of tables in COBOL - 01 WS-TABLE-DEF. 05 WS-MAIN-TABLE OCCURS 10 TIMES. 10 WS-FIRST-CHILD OCCURS 30 TIMES 15 WS-CHILD-CHILD PIC 9(5) OCCURS 10 TIMES 10 WS-SECOND-MAIN-TABLE PIC 9(4) OCCURS 20 TIMES 10 WS-THIRD-MAIN-TABLE PIC 9(3) OCCURS 20 TIMES And asked to r...
by Prakash Jha
Mon May 28, 2018 3:23 pm
Forum: Interview Questions.
Topic: Move comp-3 to comp-3.
Replies: 2
Views: 1510
India

Move comp-3 to comp-3.

Hi, Can I move comp-3 variable directly to another comp-3 variable? Or I need any alphanumeric in between? My answer was that we can move one comp-3 to another comp-3 but interview said what happen to the v in say var1 is comp3 PIC 9(4)v9(2) and var2 is PIC 9(6)v9(3)? He said what happens to v in th...

Go to advanced search