Page 1 of 1

When editing file, can not edit more then one file.

PostPosted: Sat May 04, 2019 2:39 am
by bipbop
As the title says, how do i open "multiline edit" in ps?

Re: When editing file, can not edit more then one file.

PostPosted: Sat May 04, 2019 3:50 am
by steve-myers
  1. The only "files" in z/OS are the data on magnetic tape between the beginning of the tape and a "file mark," or the data between two "file marks." Do not call what z/OS calls a "data set" a "file." They are much different.
  2. ISPF has had the ability to edit more than one data set at a time since its inception more than 40 years ago in the 1970s. In fact, by the 21st century, it could edit up to 8 data sets at a time. What you cannot do is have two independent edit sessions operating at the same time for one data set. I have to admit there have been times when something like that would be desirable, but ... You can be editing a data set in one ISPF window and "browsing" the data set in a second ISPF window in one TSO session, though the browse window will not see the updates applied in the edit session. If you mean something different by "multiline edit," please enlighten us.
You should be aware that there are two ways in ISPF to "browse" a data set. The first way is traditional ISPF browse. It is selected by flagging the Browse mode option in the View Entry Panel. The second way amounts to editing the data set, but not being able to save any changes you have made. You can "view" (this option) a data set at the same time you edit the data set, but you still cannot see any changes in the edit window in the second window.

Re: When editing file, can not edit more then one file.

PostPosted: Sat May 04, 2019 10:55 am
by steve-myers
 File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
------------------------------------------------------------------------------
EDIT       XXXXXX.PP.ASM                                   Columns 00001 00072
Command ===>                                                  Scroll ===> HALF
****** ***************************** Top of Data ******************************
000001 PP       TITLE '                     P R I N T   C O N T E N T S   O F >
000002                  A   S O U R C E   P D S'
                             
000003 PP       CSECT                     ESTABLISH THE PP CSECT              
000004          SAVE  (14,12),,PP-&SYSDATE-&SYSTIME  SAVE REGISTERS            
000005          BASR  12,0                PREPARE PP BASE REGISTTER            
000006          USING *,12                ESTABLISH PP ADDRESSABILITY          
000007          LR    15,13               ADD NEW SAVE                        
000008          LA    13,SAVEAREA          AREA TO THE                        
000009          ST    15,4(,13)             SAVE AREA CHAIN                    
000010          ST    13,8(,15)                                                
000011          L     2,0(,1)             LOAD ADDRESS OF PARAMETER TEXT      
000012          TIME  DEC                 OBTAIN THE SYSATEM DATE AND TIME    
000013          STM   0,1,12(13)          SAVE THE SYSTEM DATE AND TIME        
000014          MVC   HDRHHMM,DTPATT      COPY THE TIME EDIT PATTERN TO      ->
000015                                     THE PAGE HEADER                    
000016          ED    HDRHHMM,12(13)      FORMAT THE TIME IN THE PAGE HDR      
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  Menu  RefList  RefMode  Utilities  Workstation  Help                        
-------------------------------------------------------------------------------
                               View Entry Panel                              
Command ===>                                                                  
                                                                   More:     +
ISPF Library:                                                                
   Project . . . X                                                            
   Group . . . . X        . . .          . . .          . . .                  
   Type  . . . . X                                                            
   Member  . . .                 (Blank or pattern for member selection list)  
                                                                               
Other Partitioned, Sequential or VSAM Data Set:                              
   Data Set Name . . . pp.asm                                                  
   Volume Serial . . .           (If not cataloged)                            
                                                                               
Workstation File:                                                            
   File Name . . . . .                                                        
                                        Options                                
Initial Macro  . . . .                     Confirm Cancel/Move/Replace        
Profile Name . . . . .                  /  Browse Mode                        
Format Name  . . . . .                     View on Workstation                


  File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
 ------------------------------------------------------------------------------
 EDIT       XXXXXX.PP.ASM                                   Columns 00001 00072
 Command ===>                                                  Scroll ===> HALF
 ****** ***************************** Top of Data ******************************
 000001 PP       TITLE '                     P R I N T   C O N T E N T S   O F >
 000002                  A   S O U R C E   P D S'
                             
 000003 PP       CSECT                     ESTABLISH THE PP CSECT              
 000004          SAVE  (14,12),,PP-&SYSDATE-&SYSTIME  SAVE REGISTERS            
 000005          BASR  12,0                PREPARE PP BASE REGISTTER            
 000006          USING *,12                ESTABLISH PP ADDRESSABILITY          
 000007          LR    15,13               ADD NEW SAVE                        
 000008          LA    13,SAVEAREA          AREA TO THE                        
 000009          ST    15,4(,13)             SAVE AREA CHAIN                    
 000010          ST    13,8(,15)                                                
 000011          L     2,0(,1)             LOAD ADDRESS OF PARAMETER TEXT      
 000012          TIME  DEC                 OBTAIN THE SYSATEM DATE AND TIME    
 000013          STM   0,1,12(13)          SAVE THE SYSTEM DATE AND TIME        
 000014          MVC   HDRHHMM,DTPATT      COPY THE TIME EDIT PATTERN TO      ->
 000015                                     THE PAGE HEADER                    
 000016          ED    HDRHHMM,12(13)      FORMAT THE TIME IN THE PAGE HDR      
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Menu  Utilities  Compilers  Help                                            
 ------------------------------------------------------------------------------
 BROWSE    XXXXXX.PP.ASM                              Line 00000000 Col 001 080
 Command ===>                                                  Scroll ===> PAGE
********************************* Top of Data **********************************
PP       TITLE '                     P R I N T   C O N T E N T S   O F >        
                 A   S O U R C E   P D S'
                                     
PP       CSECT                     ESTABLISH THE PP CSECT                      
         SAVE  (14,12),,PP-&SYSDATE-&SYSTIME  SAVE REGISTERS                    
         BASR  12,0                PREPARE PP BASE REGISTTER                    
         USING *,12                ESTABLISH PP ADDRESSABILITY                  
         LR    15,13               ADD NEW SAVE                                
         LA    13,SAVEAREA          AREA TO THE                                
         ST    15,4(,13)             SAVE AREA CHAIN                            
         ST    13,8(,15)                                                        
         L     2,0(,1)             LOAD ADDRESS OF PARAMETER TEXT              
         TIME  DEC                 OBTAIN THE SYSATEM DATE AND TIME            
         STM   0,1,12(13)          SAVE THE SYSTEM DATE AND TIME                
         MVC   HDRHHMM,DTPATT      COPY THE TIME EDIT PATTERN TO      ->        
                                    THE PAGE HEADER                            
         ED    HDRHHMM,12(13)      FORMAT THE TIME IN THE PAGE HDR              

The first image shows a data set being edited in one ISPF window, and the preparation to browse the data set in a second ISPF window. The second image shows both ISPF windows after pressing the Enter key in the browse window.

Re: When editing file, can not edit more then one file.

PostPosted: Tue May 07, 2019 7:30 am
by Pedro
Be sure to use the ISPF command to start ISPF and then select option 2 to edit a data set.

From the original post, re: "multiline edit", I think the poster is using the EDIT command of TSO instead of the ISPF editor.