Page 1 of 1

To view only selected columns

PostPosted: Wed Oct 08, 2008 5:23 pm
by Yash19
Hi,
Is there any command to view only specific columns.

eg. If want to see columns from 2 to 10 only then which command should use.

Regards,
Yash

Re: To view only selected columns

PostPosted: Wed Oct 08, 2008 6:23 pm
by Bill Dennis
View what type of file with which viewer?

Re: To view only selected columns

PostPosted: Fri Oct 10, 2008 10:29 am
by Yash19
Suppose the file is in the format, like as

=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
****** ***************************** Top of Data ******************************
000001 ####KADAM##############################################
000002 ####RAKES###############################################
000003 ####SUSHI###############################################
000004 ####ANANT###############################################


Now I want to view the text starting from column 5 upto column 9 only for all rows, and want to delete other part.
Please guide me which command should I use.

Re: To view only selected columns

PostPosted: Tue Oct 28, 2008 9:16 pm
by rajithr007
You can run macros like
C ALL P'=' ' ' 1 4;C ALL P'=' ' ' 10 80

which will change the data to spaces for more information check "ISPF Edit Macros"

Re: To view only selected columns

PostPosted: Fri Oct 22, 2010 12:29 am
by ritikasingh
If you have some file viewer and you know exact column number you want to see can use DISP ONLYcommand

Re: To view only selected columns

PostPosted: Fri Oct 22, 2010 2:41 am
by dick scherrer
Hello,

What is "some file viewer"?

DISP ONLY is not a standard view/edit command.

Re: To view only selected columns

PostPosted: Fri Oct 22, 2010 10:14 am
by NicC
I have worked at a place that had an ISPF facility which allowed one to specify which columns you wanted displayed. I looked at my current system and cannot find any reference to this so it is obviously a more recent version of ISPF. I cannot remember the command either so that is not much good but be aware that in ISPF there MAY be a facility for what you want. Just dig around, look at the edit entry panel (where you speciy the file to be printed).

Re: To view only selected columns

PostPosted: Fri Oct 22, 2010 7:57 pm
by ritikasingh
I worked on FILEAID. If i wanted to see any column, I opened the file and write the column number.
For example for column number 2 and 8 , " disp 2 8 only".

Re: To view only selected columns

PostPosted: Sat Oct 23, 2010 12:54 am
by NicC
I have found the ISPF solution - on the edit entry panel is a field
Format Name

Here you enter the name of a format which is set up in option 3.11 - ignore the bit about it being for 5550 screens or dbcs: it works just dandy with 3270 type screens.