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 VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am


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