×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MAXIMUM 95 ACROSS

MAXIMUM 95 ACROSS

MAXIMUM 95 ACROSS

(OP)
HI
I have reach the limit of 95 across . Do you know a technic to bypass by a  another method this limit.
I need to put more than 95 name horizontaly for converting versus excel
Thanks
breyt

RE: MAXIMUM 95 ACROSS

breyt,

you can define the individual fields, then sum them up to get a single row.

So instead of, say,

TABLE FILE CAR
SUM CNT.MODEL
ACROSS COUNTRY
END

you would have

DEFINE FILE CAR
JAPAN/P9   = IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 0;
GERMANY/P9 = IF COUNTRY EQ 'GERMANY' THEN 1 ELSE 0;
END

TABLE FILE CAR
SUM JAPAN
    GERMANY
END

Now this might sound bad for 95 columns, but you can automate it using dialogue manager.

Create a file containing all the valid values - in this case JAPAN and GERMANY ie

TABLE FILE CAR
BY COUNTRY
ON TABLE SAVE AS COUNTRY
END


DEFINE FILE CAR

-READ COUNTRY &ctry.A20.
-REPEAT CTRY_L1 WHILE &IORETURN EQ 0;
&CTRY.EVAL/P9 = IF COUNTRY EQ '&CTRY.EVAL' THEN 1 ELSE 0;
-READ COUNTRY &ctry.A20.
-CTRY_L1

END

TABLE FILE CAR
SUM

-READ COUNTRY &CTRY.A20.
-REPEAT CTRY_L2 WHILE &IORETURN EQ 0;
&CTRY.EVAL
-READ COUNTRY &CTRY.A20.
-CTRY_L2

END


Something like this should do what you need.

regards

RE: MAXIMUM 95 ACROSS

(OP)
Hi
thanks a lot. I may have the risk for the print to go over the limit ?
I have 180 fields
thanks
breyt

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close