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
 

 

To Open (Browse, Edit & Delete) a file from Command line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
k_kirru
Currently Banned

New User


Joined: 14 Sep 2005
Posts: 16

PostPosted: Tue Nov 20, 2007 1:21 pm    Post subject: To Open (Browse, Edit & Delete) a file from Command line
Reply with quote

If anybody has code for the following operations could you please post the code and suggest me how to use the code to work in my system.

1.Want to open a file (Sequential & VSAM) from JCL/PROC by giving the command (any command) in command line, so that I can Browse, View, Edit & Delete it from command line instead of opening the file from other screen or panel in the system.

Could you please send me the code if you already have/using in your projects.

Kiran
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: Tue Nov 20, 2007 3:19 pm    Post subject: Reply to: To Open (Browse, Edit & Delete) a file from Co
Reply with quote

See this previous topic or download the ZOOM ISPF EDIT Macro from FILE 671 of the CBT Tape.
Back to top
View user's profile Send private message
rajaherein

New User


Joined: 11 Jan 2007
Posts: 23
Location: chennai

PostPosted: Tue Nov 20, 2007 4:41 pm    Post subject:
Reply with quote

Use the following commands in the command line to open the Sequential/VSAM file in Browse or Edit or View mode.

EPDF "File Name" B--> This will open the file in Browse mode

EPDF "File Name" V-->This will open the file in View mode

EPDF "File Name" -->This will open the file in Edit mode
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Nov 22, 2007 1:50 am    Post subject:
Reply with quote

If you are in edit or view on your JCL or proc where there is dsn=... for the dataset and you do not want to retype the dataset name you may use the DSNB (Browse) REXX and position the cursor on the line with the DSN=. Search this forum for DSNB if you would like the code for this REXX. I also have DSNE (Edit) and DSNV (View).
Back to top
View user's profile Send private message
k_kirru
Currently Banned

New User


Joined: 14 Sep 2005
Posts: 16

PostPosted: Tue Nov 27, 2007 3:52 pm    Post subject: Reply to: To Open (Browse, Edit & Delete) a file from Co
Reply with quote

Hi Kevin,

Could you suggest me how to use this macro to work in the system. I have copied (FB80) to system with member name as ZOOM in a PDS (JCL also present in same library), then I have given the ZOOM command on command line after placing the cursor on DSN name,it showing an error "ZOOM command not found".
So could you please help me out how to use this macro effectively in my system

Thanks in advance.

Regards,
Kiran
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 27, 2007 4:01 pm    Post subject: Reply to: To Open (Browse, Edit & Delete) a file from Co
Reply with quote

kkiru,

Quote:
then I have given the ZOOM command on command line after placing the cursor on DSN name,it showing an error "ZOOM command not found".


After creating a macro in a member, you will have to allocate the PDS to either SYSEXEC or SYSPROC to execute the command from the command line.
Back to top
View user's profile Send private message
k_kirru
Currently Banned

New User


Joined: 14 Sep 2005
Posts: 16

PostPosted: Tue Nov 27, 2007 6:54 pm    Post subject:
Reply with quote

Hi Douglas,

Thanks for your code, I am able to the operations like Browse,View & Edit.
I need some more information on this, if you has could you let us know please.

1.How to delete a dataset.
2.Every time I logged in, I need to execute the TSO EX command. Is there any other way to do execute this in a single shot (only one time).

Regards,
kiran
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Nov 27, 2007 8:09 pm    Post subject:
Reply with quote

Regarding your second question, allocate one of your PF-Keys to that command.

O.
Back to top
View user's profile Send private message
k_kirru
Currently Banned

New User


Joined: 14 Sep 2005
Posts: 16

PostPosted: Wed Nov 28, 2007 5:02 pm    Post subject:
Reply with quote

I have alloacated to one of PF Key, after log off and log in, its not working
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2007 9:14 pm    Post subject:
Reply with quote

Hello,

How did you define the PFkey?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Nov 29, 2007 11:12 am    Post subject: Reply to: To Open (Browse, Edit & Delete) a file from Co
Reply with quote

Kiran,

Aaru wrote:
Quote:
After creating a macro in a member, you will have to allocate the PDS to either SYSEXEC or SYSPROC to execute the command from the command line


Did you try doing this?

Quote:
I have alloacated to one of PF Key, after log off and log in, its not working


It wont work unless the member is allocated to either SYSEXEC or SYSPROC. First allocate and then assign a PF key and it would work.
Back to top
View user's profile Send private message
k_kirru
Currently Banned

New User


Joined: 14 Sep 2005
Posts: 16

PostPosted: Fri Nov 30, 2007 11:50 am    Post subject:
Reply with quote

Yes, I have allocated to PF Key. What I have done is: executred the TSO Alloc command then it's working fine. Then I have logged off and logged in, now I didnt execute the TSO Alloc command directly i tried to open a file, it's populated message 'DSNB key not found'. Here I am feeling that whenever we logged in we need to execute the TSO Alloc command. Here my question is : instead of executing this command every time is there any other way to do in single time.

Thanks,
kiran
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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