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

Edit a JCL member and store the same in a different name


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijayramkumar.d

New User


Joined: 26 Mar 2007
Posts: 2
Location: TN

PostPosted: Mon Mar 26, 2007 5:56 pm
Reply with quote

Hi,

How to save a jcl member with another name when iam in it....

i have a scenario where my jcls differ from other with few lines and i need to save the jcl with another name whenever i have doen the changes...so i that at the end i shld have 5 jcl members inthe pds if my changes done is 5 times....

or

can u tell me how to save the jcl when i give SJ to the jobs in spool...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Mar 26, 2007 6:02 pm
Reply with quote

You can use the CREATE command.

O.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 26, 2007 6:04 pm
Reply with quote

I'm thinking a combination of CUT, EDIT, and PASTE

or

a combination of CREATE and COPY
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 6:06 pm
Reply with quote

On the command line type either

CREATE 'your pds name (member)

or if the member already exists

REPLACE 'your pds name (member)

And then

C99999 //X48201J JOB 'JOB INFORMATION',
000002 // CLASS=1,
000003 // MSGCLASS=U,
000004 // NOTIFY=&SYSUID
000005 //*
000006 //DUMMYSTP EXEC PGM=IEFBR14

and then press enter
Back to top
View user's profile Send private message
vijayramkumar.d

New User


Joined: 26 Mar 2007
Posts: 2
Location: TN

PostPosted: Mon Mar 26, 2007 6:33 pm
Reply with quote

Hi,

hey i tried 'create my pds name' but my pds is long and could not fit in the command line..wat shld be done
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 6:38 pm
Reply with quote

Change your pds name icon_biggrin.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Mar 26, 2007 6:53 pm
Reply with quote

If you want the member to be create in the same PDS, you can provide the member name only.

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 7:06 pm
Reply with quote

Yeah,

ofer71 has the result from within the PDS,
my suggestion was from within SJ in SDSF.

You could always CREATE 'short ds name'
and then copy that file into your PDS.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Mar 27, 2007 6:20 am
Reply with quote

Hi Vijay,

If you're creating the newly named member to the same PDS as the orig, just enter "create newmem" on the cmd line. No need for the PDS name.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts PDS member list with stats JCL & VSAM 6
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts Executing DB2 SQL store procedure via... DB2 1
Search our Forums:


Back to Top