How to check for Spaces in Easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

How to check for Spaces in Easytrieve

Postby gauthamnagpur18 » Thu May 31, 2012 9:36 pm

Hi ,

How to check whether a variable is equal to spaces in easytrieve . When i checked , it thrown a error :

NAME IS UNDEFINED - SPACES

Could you please help me out .

Thanks in advance . :D
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times

Re: How to check for Spaces in Easytrieve

Postby BillyBoyo » Thu May 31, 2012 10:03 pm

Did you try the manual? Do you want to post the code causing the error? And the full error message, with the number.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to check for Spaces in Easytrieve

Postby c62ap90 » Fri Oct 12, 2012 2:31 am

gauthamnagpur18 wrote:Hi ,

How to check whether a variable is equal to spaces in easytrieve . When i checked , it thrown a error :

NAME IS UNDEFINED - SPACES

Could you please help me out .

Thanks in advance . :D


Hmmm, I just ran an Easytreive using the verb "SPACES" and it worked.
Here a 2-ways I know to move spaces to a field.

some-field 1 5 A

JOB INPUT NULL NAME MYPROG
MOVE SPACES TO some-field

JOB INPUT NULL NAME MYPROG
Some-field = ' '
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: How to check for Spaces in Easytrieve

Postby BillyBoyo » Fri Oct 12, 2012 4:05 am

"SPACES" isn't a "verb".

The question was about how to check that something is equal to spaces. With no reply to our questions, I assume the TS found out what they were doing incorrectly.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to check for Spaces in Easytrieve

Postby c62ap90 » Fri Oct 12, 2012 4:25 am

BillyBoyo wrote:"SPACES" isn't a "verb".

The question was about how to check that something is equal to spaces. With no reply to our questions, I assume the TS found out what they were doing incorrectly.


some-field  1  5 A

IF  some-field  = ‘     ‘
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: How to check for Spaces in Easytrieve

Postby BillyBoyo » Fri Oct 12, 2012 5:26 am

That should have been "equal to spaces using SPACES".
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to check for Spaces in Easytrieve

Postby c62ap90 » Fri Oct 12, 2012 4:38 pm

BillyBoyo wrote:That should have been "equal to spaces using SPACES".


Hmmm, not sure what you mean. Can you show me/us the code? Thanks.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: How to check for Spaces in Easytrieve

Postby BillyBoyo » Fri Oct 12, 2012 5:01 pm

http://www.ibmmainframeforum.com/easytrieve/topic7674.html#p35353

Subsequently the TS failed to provide any more information, including the problematic code.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to check for Spaces in Easytrieve

Postby dick scherrer » Fri Oct 12, 2012 7:12 pm

Hello,

Can you show me/us the code?
Unfortunately not.

As often happens, when someone posts a "problem" and later discovers they have made a mistake, they just fade away. They do not post the issue is resolved and did not post the problem code in the first place. . .

There are several "helpers" who look at a poster's past performance and if they never follow up, these helpers do not even look at their issues.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to check for Spaces in Easytrieve

Postby c62ap90 » Fri Oct 12, 2012 7:53 pm

dick scherrer wrote:Hello,

Can you show me/us the code?
Unfortunately not.

As often happens, when someone posts a "problem" and later discovers they have made a mistake, they just fade away. They do not post the issue is resolved and did not post the problem code in the first place. . .

There are several "helpers" who look at a poster's past performance and if they never follow up, these helpers do not even look at their issues.


Actually I was asking BillyBoya for the code and not the original poster.
I may have just understood. No biggie.

1) 10/11 5:55 pm - c62ap90 email had "IF some-field…" code.
2) 10/11 6:56 pm - BillyBoyo said - That should have been "equal to spaces using SPACES".
I'm assumeing he is saying my code is incorrect.
3) 10/12 6:08 am - c62ap90 asks BillyBoyo to show the code.
That is show the code for - That should have been "equal to spaces using SPACES".
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Next

Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post