IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Moving a variable name to Map fields


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Fri Sep 17, 2010 4:21 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Sep 17, 2010 4:25 pm
Reply with quote

not in COBOL.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Fri Sep 17, 2010 4:48 pm
Reply with quote

Hi Ravi,

May I ask - "Why" you want to do this ? icon_confused.gif
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Fri Sep 17, 2010 5:53 pm
Reply with quote

Actually it can reduce a lot of work for me if this is possible icon_smile.gif
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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 17, 2010 5:57 pm
Reply with quote

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
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Fri Sep 17, 2010 6:27 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 17, 2010 6:30 pm
Reply with quote

Quote:
i would say, re inventing the tyre, which is valid!


nahh icon_biggrin.gif 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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Sep 17, 2010 7:34 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 17, 2010 7:40 pm
Reply with quote

well horse manure sounds more <classy> icon_biggrin.gif

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
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Sep 18, 2010 5:41 pm
Reply with quote

icon_idea.gif
hows this:: classy horse manure

icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top