Stuck on SCRATCH'ing a member..

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
magik5
Posts: 8
Joined: Tue Feb 19, 2008 12:17 am
Skillset: jcl
Referer: google

Stuck on SCRATCH'ing a member..

Postby magik5 » Tue Mar 11, 2008 7:54 pm

Hello again, more problems my way.

This time I need to scratch a member within a library.
I want to scratch the member 'FRESH' from the library 'MARLEY'.

Here's my code...

Code: Select all

//*
//LIBPROGM EXEC PGM=IEHPROGM
//SYSPRINT DD  SYSOUT=*
//ANYNAME  DD  UNIT=SYSDA,
//             VOL=SER=STRG03,
//             DISP=OLD
//SYSIN    DD  *
 SCRATCH MEMBER=FRESH,DSNAME=MARLEY,                                  *
              VOL=SYSDA=STRG03
/*
//


and then again, I get more errors...

Code: Select all

!! END OF JES SPOOL FILE !!
1SYSTEM SUPPORT UTILITIES ---- IEHPROGM                                                                   PAGE 0001     
-                                                                                                                       
  SCRATCH MEMBER=FRESH,DSNAME=MARLEY,                                  *                                                 
 IEH202I  INVALID KEYWORD OR CONTROL STATEMENT SYNTAX                                                                   
-                                                                                                                       
               VOL=SYSDA=STRG03                                                                                         
  IEH201I  INVALID REQUEST... STATEMENT IGNORED                                                                         
-                                                                                                                       
 UTILITY END                                                                                                             
 !! END OF JES SPOOL FILE !!


I'm on a differnet part of my assignment, but I could not finish because I screwed it up and now I need to remove FRESH, so I can try my other steps again.

All help is apperciated ! - Thanks Justin.

arunprasad.k
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Skillset: Known little stuffs to answer a few queries!!
Referer: Google
Contact:

Re: Stuck on SCRATCH'ing a member..

Postby arunprasad.k » Tue Mar 11, 2008 9:13 pm

I do not see any problem with your control statements.

Check whether the '*' in the control statement is in 72 position and the next line starts on position 16.

If you want to delete a member from PDS you can also use the below IDCAMS JCL.

Code: Select all

//S01    EXEC PGM=IDCAMS           
//SYSPRINT DD SYSOUT=*             
  DELETE 'MARLEY(FRESH)'           


Post if you still have issues. Arun.

arunprasad.k
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Skillset: Known little stuffs to answer a few queries!!
Referer: Google
Contact:

Re: Stuck on SCRATCH'ing a member..

Postby arunprasad.k » Fri Mar 14, 2008 3:32 pm

Justin, Is your code working now :?:

Arun.


  • Similar Topics
    Replies
    Views
    Last post