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
 

 

WRITE with out SPACE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
anguraj

New User


Joined: 10 Jun 2006
Posts: 3

PostPosted: Wed Jul 12, 2006 10:32 am    Post subject: WRITE with out SPACE
Reply with quote

Hi

When we try to write the value of varibles , it will be leaving a default space before the variable... for EG.
#name := IBM and #age := 22

when we have
write 'NAME' #name #age it will write as Name IBM 12.....
you can find a space between the variable values.....

is there any way to avoid the spaces i.e.. i need it has NameIBM12...????

With Regards
Anguraj
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jul 12, 2006 10:43 am    Post subject:
Reply with quote

I believe the only way to do it is by using COMPRESS. Here is an example:
Code:
DEFINE DATA LOCAL                                     
1 #NAME  (A4)                                         
1 #AGE   (N2)                                         
1 #OUT   (A10)                                       
END-DEFINE                                           
*                                                     
#NAME := 'IBM'                                       
#AGE  := 22                                           
*                                                     
COMPRESS 'NAME' #NAME #AGE INTO #OUT LEAVING NO SPACE
WRITE 'NAME' #NAME #AGE                           
WRITE #OUT                                           
*                                                     
END                                                   


O.
Back to top
View user's profile Send private message
anguraj

New User


Joined: 10 Jun 2006
Posts: 3

PostPosted: Wed Jul 12, 2006 10:48 am    Post subject: Re: WRITE with out SPACE
Reply with quote

Hi
thks for your imme.. reply.... but inmy situation i can t use compres..... for various resons.... is there any other way..... ??????
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jul 12, 2006 10:59 am    Post subject:
Reply with quote

As far as I know - there is no formal way.

O.
Back to top
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Thu Jul 13, 2006 9:01 pm    Post subject:
Reply with quote

I dont find any way other than compress.
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Compare 2 files & write Indicator... nagendrapgupta SYNCSORT 5 Sun May 15, 2016 10:42 am
No new posts DFSORT to match two files and write John F Dutcher DFSORT/ICETOOL 6 Thu May 12, 2016 5:17 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm


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