Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Delete the contents in a Sequential Dataset(PS)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mars

New User


Joined: 25 Aug 2005
Posts: 5
Location: chennai

PostPosted: Tue Jan 10, 2006 3:26 pm    Post subject: Delete the contents in a Sequential Dataset(PS)
Reply with quote

How to delete the contents alone from a PS without deleting the dataset?

Pls help me
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Tue Jan 10, 2006 3:37 pm    Post subject: Re: Delete the contents in a Sequential Dataset(PS)
Reply with quote

Hi,


I am not sure whether this is what you are referring to.

To delete everything from a member through one line command, you can use DEL NX ALL.

I doubt my solution is wrong.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Tue Jan 10, 2006 3:38 pm    Post subject:
Reply with quote

Hi,

Just copy a dummy file to the Sequential file.. Any other way, please suggest..

Code:
//COPY0P12  EXEC PGM=IEBGENER             
//SYSPRINT DD SYSOUT=*                     
//SYSUT1   DD DUMMY                       
//SYSUT2   DD DSN=HLQ.SEQ.DATA.SET,DISP=SHR   


Hope this will help.

Thanks,
Mani
Back to top
View user's profile Send private message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Tue Jan 10, 2006 4:02 pm    Post subject: Re: Delete the contents in a Sequential Dataset(PS)
Reply with quote

Hi friend,

U can try this also. This job deletes the contents of SORTIN Dataset,and copies into outfile.

Code:
//JOBA JOB (U,0001),'aaa',CLASS=0,MSGCLASS=X,MSGLEVEL=(1,1),     
//   NOTIFY=&SYSUID                                                   
//S1  EXEC PGM=ICEMAN                                                 
//SYSPRINT  DD SYSOUT=*                                               
//SYSOUT    DD SYSOUT=*                                               
//SORTIN    DD DSN=A.B.PS1,DISP=SHR                         
//SORTOUT   DD DSN=A.B.PS2,DISP=(NEW,CATLG),               
//             SPACE=(TRK,(2,2)),                                     
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)                   
//SYSIN     DD *                                                     
      OPTION COPY                                                     
      OMIT COND=ALL                                                   
/*               


Thanks and Regards,
Suganthy.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us