View previous topic :: View next topic
|
Author |
Message |
hiravibk Warnings : 1 Active User
Joined: 14 Dec 2008 Posts: 107 Location: India
|
|
|
|
Hi,
Is it possible to move part of the variable names itself to the map field instead of variable value in a COBOL-CICS program?
Eg. Suppose I have a variable WS-FIRST-NAME PIC X(10), I want to move 'FIRST-NAME' to the map output field removing the 'WS-' part from the variable WS-FIRST-NAME and not the value in it. I do want to hard code this logic. Is it possible?
Thanks! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
not in COBOL. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Ravi,
May I ask - "Why" you want to do this ? |
|
Back to top |
|
|
hiravibk Warnings : 1 Active User
Joined: 14 Dec 2008 Posts: 107 Location: India
|
|
|
|
Actually it can reduce a lot of work for me if this is possible
Here is why in simple words:
We are developing a new tool. It must read a VSAM file and display the contents of it the following way.
<LABEL1> <VALUE1>
<LABEL2> <VALUE2>
<LABEL3> <VALUE3>
<LABEL4> <VALUE4>
The label is description for the value i will be displaying(or variable name) which will be present in the copybook of the VSAM file. So, I want to get the variable names from the copybook display it on screen against the variable values for the entire VSAM file from the copybook for all the variables. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
We are developing a new tool. |
looks more like reinventing the wheel!
or more likely wasting money developing in house what software providers can certainly do better !
... and if Your organization has to ask on a forum how to do it, that means that the skill set needed is not there |
|
Back to top |
|
|
hiravibk Warnings : 1 Active User
Joined: 14 Dec 2008 Posts: 107 Location: India
|
|
|
|
Well, by tool i actually meant a new transaction. Instead of reinventing the wheel, i would say, re inventing the tyre, which is valid!
As i said, I have just kept it in simple words there are actually alot more files, tables involved. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
i would say, re inventing the tyre, which is valid! |
nahh just the same horse manure
did You care to search the forums on how to interpret a copybook source,
looks really like not! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
if you are just displaying it - why are you planning on wasting CICS resources?
you need to provide a business reason for this.
sounds to me as if someone has decided he will build a tool,
impress his boss and coworkers,
all the while planning on getting for free something off the internet.
horse manure. made a post recently using the more colloquial term.
if a moderator passes upon that post, would appreciate an exchange of terms. thx, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
well horse manure sounds more <classy>
from some internet source
Quote: |
classy
... about having style and taking care to be polite to others and to reflect a genuine interest in them ... |
|
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
hows this:: classy horse manure
|
|
Back to top |
|
|
|