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

Transfer the output of a SCANPDS into a sequention


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Fri Aug 03, 2007 2:37 pm
Reply with quote

hi all,

is there a way to transfer the output of a SCANPDS into a sequention.

for example:
Code:

COMMAND ===>                                                                 
                                                             Date: 2007/08/03
Enter/Verify Parameters Below:                               Time: 05:03:57.90
                                                             Vers: 6.18       
          Data Set Name ==> CMN.XXXX.BASE.PRC                                 
          Volume Serial ==>         (If Not Cataloged)                       
                                                                             
             Search For ==> EXPDT                                             
             Search For ==> LABELTP                                           
             Search For ==>                                                   
                                                                             
          More Criteria ==> NO      (Yes/No)                                 


when i give the above search i get the following screen.
Code:

Column ....+....1....+....2....+....3....+....4....+....5....+....6....+..
     --------------------------------------------------------------------
     ---                Pds: CMN.XXXX.BASE.PRC on PMH17D              ---
     --------------------------------------------------------------------
_   _RA130A1A                                                             
000021 //SYSUT2   DD  DSN=&APPLIDA..RA13011A.BILLTEXT.TEMP,               
       //             DISP=(NEW,CATLG,DELETE),                           
       //             UNIT=TAPE,                                         
       //             VOL=(,,,30),                                       
       //             LABEL=(1,SL,,EXPDT=99000),                         
       //             SPACE=(TRK,(1,1),RLSE),                             
       //             DCB=(RECFM=VB,BLKSIZE=0,LRECL=23472)               
000055 //RA113BLL DD DSN=&APPLIDA..RA13011A.SORTED.BILLTEXT(+1),         
       //            DISP=(NEW,CATLG,DELETE),                             
       //            UNIT=TAPE,                                           
       //            VOL=(,,,30),                                         
       //            LABEL=(1,SL,,EXPDT=99000),                           
       //            SPACE=(TRK,(1,1),RLSE),                             
       //            DCB=(RECFM=VB,BLKSIZE=0,LRECL=23472)                 


which shows the member which has the word and where exactly the word is found. all i need to get this information in a NEW PS file.

if any has any idea kindly let me know.

thanks,
M.Loganathan
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 03, 2007 3:09 pm
Reply with quote

do a block CC CC of the data you wish to save and use the CREATE ISPF cmd which will open a dataset selection/determination screen.

that is CREATE without parms in the cmd line.
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Fri Aug 03, 2007 3:22 pm
Reply with quote

Hi Loga,

Have you tried SuperC?
Back to top
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Aug 03, 2007 3:30 pm
Reply with quote

Od311,

Quote:
Have you tried SuperC?

Superc for searching?
Back to top
View user's profile Send private message
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Fri Aug 03, 2007 3:35 pm
Reply with quote

hi Dick Brenholtz,

it worked fine.
thanks a lot.

hi 0d311,

superC gives only the exact line where the search word is present. the word i used for search is a DSN parameter and i want the data set that contain this word(hope i didn't confuse u) hence i prefered SCANPDS.
any way thanks.

thanks to all,
M.Loganathan
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Aug 03, 2007 4:08 pm
Reply with quote

Loga,

I did a SCANP and i tried selecting a block of data (using CC and CC) but was not able to do as it dint allow me to select a block of data.

The results of the SCANP is in the browse mode and hence the problem ! How did that work for u guys?
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Fri Aug 03, 2007 4:27 pm
Reply with quote

murmohk1 wrote:
Od311,

Quote:
Have you tried SuperC?

Superc for searching?


I'm sure that SuperC can be used both for compare and search. If you run 3.13 and 3.14 in batch, you'll see that they call the sameprogram, ISRSUPC.
Back to top
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Fri Aug 03, 2007 4:50 pm
Reply with quote

Hi Aaru,

after the SCANP in the result screen just type 'C' or 'CC' it should show you a PS file with the SCANP result.

Code:

AAT3       SYS07215.T071849.RA000.LM6535.R0629804          Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001      ------------------------------------------------------------------
000002      ---                  Pds: PXY0O.PROCLIB on PMP115                -
000003      ------------------------------------------------------------------
000004  _   _RA130A1A                                                         
000005  000021 //SYSUT2   DD  DSN=&APPLIDA..RA13011A.BILLTEXT.TEMP,           
000006        //             DISP=(NEW,CATLG,DELETE),                         
000007        //             UNIT=TAPE,                                       
000008        //             VOL=(,,,30),                                     
000009        //             LABEL=(1,SL,,EXPDT=99000),                       
000010        //             SPACE=(TRK,(1,1),RLSE),                         
000011        //             DCB=(RECFM=VB,BLKSIZE=0,LRECL=23472)             
000012  000055 //RA113BLL DD DSN=&APPLIDA..RA13011A.SORTED.BILLTEXT(+1),       


then as usual u can either us CC to copy or can copy the entire file to new file using 'CREATE .ZF .ZL'

hope this helps

thanks,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Aug 03, 2007 5:14 pm
Reply with quote

Cool ! Its working now ! Thanks a lot !
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts XL C Trace Preprocessor Output All Other Mainframe Topics 3
Search our Forums:

Back to Top