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

WRITE with out SPACE


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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: 2359
Location: Israel

PostPosted: Wed Jul 12, 2006 10:43 am
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
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: 2359
Location: Israel

PostPosted: Wed Jul 12, 2006 10:59 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts DB2, write report based on query outp... DB2 1
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
Search our Forums:

Back to Top