Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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 -> NATURAL & MQSERIES
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
References
PostPosted: Wed Jul 12, 2006 10:32 am    Post subject: Re: WRITE with out SPACE Reply with quote

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1867
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: 1867
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

Active User


Joined: 01 Apr 2005
Posts: 59

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES All times are GMT + 6 Hours
Page 1 of 1