Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us