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

how to concatenate strings in easytrive..


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ragav86

New User


Joined: 27 Jan 2010
Posts: 37
Location: chennai

PostPosted: Thu Mar 01, 2012 12:49 pm
Reply with quote

Code:

WS-MSG = 'UNKNOWN PARM TYPE READ - ' WS-PGM-REAL-NAME
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - WS-MSG
*******B038 MUST BE NUMERIC LITERAL - UNKNOWN PARM TYPE READ -       
*******B180 ARITHMETIC OPERATOR IS MISSING - UNKNOWN PARM TYPE READ -
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - WS-PGM-REAL-NAME


Hi,

How to cocatenate strings with variables in easytrive..
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Mar 01, 2012 1:19 pm
Reply with quote

You can get away without "concatenation", as your first "string" is a literal, so has a fixed length.

Redefine W-MSG so that you can access something that is length-of-literal plus one long (I'm not going to count it) long, and have a second field after that.

Assign literal to first field. Assign WS-PGM-REAL-NAME to second field. Enjoy.
Back to top
View user's profile Send private message
seagull

New User


Joined: 28 May 2007
Posts: 24
Location: Dublin

PostPosted: Wed Mar 07, 2012 10:27 pm
Reply with quote

Redefine your WS-MSG variable so that it has a piece for the message text and a piece for the program name
Code:
WS-MSG                      40 A
WS-MSG-TEXT   WS-MSG        30 A
WS-PGM-NAME   WS-MSG   +30  10 A

Then you can have
Code:
WS-MSG-TEXT = 'UNKNOWN PARM TYPE READ - '
WS-PGM-NAME = WS-PGM-REAL-NAME
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. How to search multiple strings in a PDS IBM Tools 3
No new posts Print next line strings when a condit... DFSORT/ICETOOL 9
No new posts concatenate sysin to dsn JCL & VSAM 7
No new posts Need help to concatenate files with w... All Other Mainframe Topics 3
Search our Forums:

Back to Top