set statement

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

set statement

Postby anubaby » Wed Dec 15, 2010 1:12 pm

Create a JCL to delete a file and if this step is executed successfully create a new file with same name as the deleted file and with the extension as your name and also the file must contain your name as the contents of the file. Use set statement for having the file name and the name of the person.
Posts: 1
Joined: Thu Nov 18, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: set statement


Re: set statement

Postby enrico-sorichetti » Wed Dec 15, 2010 1:22 pm

and... where is the question?
just go ahead and doit !
we do not have any need for something like that :evil:
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: set statement

Postby dick scherrer » Thu Dec 16, 2010 1:47 am

Hello and welcome to the forum,

I suspect this is a class assignment. . .

Where are you stuck?

What is supposed to be used to delete the file? What kind of file is this (qsam, vsam, etc).

Mainframe files do not have "extensions". If your name is longer than 8 characters it cannot be used in the mainframe dataset name.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Return to JCL


  • Related topics
    Last post