Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Edit a JCL member and store the same in a different name
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: 2360
Location: Israel

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

You can use the CREATE command.

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

Moderator Team Head


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

PostPosted: Mon Mar 26, 2007 6:04 pm    Post subject: Re: Edit a JCL member and store the same in a different name
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 26, 2007 6:06 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 26, 2007 6:38 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Mar 26, 2007 6:53 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 26, 2007 7:06 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Use of Edit & FTOV migusd SYNCSORT 3 Wed Jun 08, 2016 1:49 am
No new posts How storage is calculated for AN-Edit... Raghu navaikulam COBOL Programming 2 Wed Mar 09, 2016 3:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us