[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iamok::dtrdig

Title:DATATRIEVE INTEREST GROUP
Notice:ADD KEYWORDS TO NOTES FOR EASY SEARCHES
Moderator:IMTDEV::KRATZER
Created:Fri Mar 21 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3011
Total number of notes:9337

1947.0. "Concatenate a Declare Statement" by SUBURB::LAWSONM1 () Mon Apr 22 1991 16:32

T.RTitleUserPersonal
Name
DateLines
1947.1CSC32::M_HOEPNERStanding on the edge is not the sameMon Apr 22 1991 20:427
1947.2Strange !ALICAT::HARRIDGEWayne HarridgeTue Apr 23 1991 09:2010
1947.3BUSY::SLABCan you hear the drums, Fernando?Tue Apr 22 1997 20:0544
    
    	Is there any way to specify a variable as the picture clause of a
    	declared variable?
    
    	IE:
    
    	declare Q1 pic x(4).
    	Q1=0
    	begin
    	  Q1=Q1+1
    	  declare y pic x(Q1)
    	end
    
    
    	We've tried quoting Q1 [''Q1'] but it appears that DTR doesn't like
    	that.  And it definitely didn't want to invoke a command procedure
    	from inside the begin/end loop.
    
    	If this won't work, will anything?  We're trying to declare a var-
    	iable using 70-character increments, and then every time through
    	the loop step the length up another 70 characters and append a new
    	string to the end using a concatenation character ... ||.
    
    	Or, maybe more simply, how does one assign a series of paragraphs
    	to a variable name and keep the paragraph format upon output of
    	same?
    
    	IE [again]:
    
    
    	The quick brown fox jumped over the lazy dog.  Why he did this I
    	have no idea, but then again, who cares?  Does he need a reason?
    
    	The dog laid there and watched him jump over.  Why should I care
    	what he does?  I'm comfortable, and he's doing all the work.
    
    
    
    	Assign the above paragraph to a variable with a T(80) edit_string
    	and then try to reproduce it ... it seems that DTR won't preserve
    	the gap between paragraphs.
    
    	Thanks for any info.