IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compare two dataset in column 1 to 71


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Jan 02, 2008 3:19 pm
Reply with quote

Can I use COMPARE in command line to get a result which just has comparison from column 1 to 71? I know how to do it in 3.13, but not in 3.4 command line.

Thanks!
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 02, 2008 6:05 pm
Reply with quote

Can you issue a COMPARE command from the dataset list panel (3.4)???

O.
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Jan 02, 2008 8:38 pm
Reply with quote

No, I meant I wanna to compare 2 members (column 1 to 71) using by COMPARE command in EDIT or VIEW mode.

Sorry for make you confuse.
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Jan 02, 2008 11:09 pm
Reply with quote

anyone can provide some information on this issue?

Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 02, 2008 11:21 pm
Reply with quote

Sure you can.

When you execute the ISPF Editor Command COMPARE, ISPF invokes SUPERC in the background.

As with SUPERC, you can provide your process statements (like CMPCOLM) in SYSIN.

For more information, please refer to the fine manual.

O.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Jan 02, 2008 11:53 pm
Reply with quote

Cool - I never knew this.

BUT - I see no way to specify columns to compare. I tried setting the bounds (line comand BND), but the compare ignored that.

You'll need to use SUPERCE with a Stateents DSN containing
Quote:
CMPCOLM 1:71
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 1:12 am
Reply with quote

If it is a case of line numbers in the columns 72:80 you could just issue run a RENUM (to ensure all lines have numbers), then UNNUM (to clear all the numbers.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 03, 2008 1:19 am
Reply with quote

Guys, I gave you all the clues:
1. Create a dataset which contains only one record, with the following data in it: CMPCOLM 1:71
2. Allocate that dataset to SYSIN.
3. Go into ISPF Editor, then type COMPARE SYSIN.

O.
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Thu Jan 03, 2008 12:41 pm
Reply with quote

Hi O

I have followed your clues step by step, after I enterd COMPARE DSNNAME SYSIN, something strange happened, all my keys are not working anymore, such as PF3, F12, ENTER, then I had to shut my session down and re-startup.

Do you know why this happened?

Thanks
Galen
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 03, 2008 1:02 pm
Reply with quote

You probably have other file allocated to SYSIN....

O.
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Sat Jan 05, 2008 1:32 pm
Reply with quote

Hi O,

How can I allocate a dataset to the speific SYSIN?
Could U please provide more detail?

Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Jan 06, 2008 1:48 am
Reply with quote

Use the FREE & ALLOCATE commands.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top