Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to concatenate strings in easytrive..

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: how to concatenate strings in easytrive..
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Mar 01, 2012 1:19 pm    Post subject: Reply to: how to concatenate strings in easytrive..
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Concatenate different LRECL GDG's Rohit Umarjikar DFSORT/ICETOOL 6 Wed Nov 18, 2015 3:30 am
No new posts Concatenate 2 different VB files to a... santhosh5983 DFSORT/ICETOOL 8 Sat Oct 10, 2015 2:12 am
No new posts How to concatenate a dataset with SYS... swathykrishnan CLIST & REXX 8 Tue Sep 01, 2015 6:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us