Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Moving a variable name to Map fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Fri Sep 17, 2010 4:21 pm    Post subject: Moving a variable name to Map fields
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: 6968
Location: porcelain throne

PostPosted: Fri Sep 17, 2010 4:25 pm    Post subject:
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    Post subject:
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: 103
Location: India

PostPosted: Fri Sep 17, 2010 5:53 pm    Post subject: Reply to: Moving a variable name to Map fields
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Sep 17, 2010 5:57 pm    Post subject: Reply to: Moving a variable name to Map fields
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: 103
Location: India

PostPosted: Fri Sep 17, 2010 6:27 pm    Post subject: Reply to: Moving a variable name to Map fields
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Sep 17, 2010 6:30 pm    Post subject: Reply to: Moving a variable name to Map fields
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: 6968
Location: porcelain throne

PostPosted: Fri Sep 17, 2010 7:34 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Sep 17, 2010 7:40 pm    Post subject: Reply to: Moving a variable name to Map fields
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us