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

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


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Nov 20, 2007 3:19 pm
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
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
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
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: 1287
Location: Chennai, India

PostPosted: Tue Nov 27, 2007 4:01 pm
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
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: 2358
Location: Israel

PostPosted: Tue Nov 27, 2007 8:09 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Nov 28, 2007 9:14 pm
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: 1287
Location: Chennai, India

PostPosted: Thu Nov 29, 2007 11:12 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
Search our Forums:

Back to Top