View previous topic :: View next topic
|
Author |
Message |
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
rajaherein
New User
Joined: 11 Jan 2007 Posts: 23 Location: chennai
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Regarding your second question, allocate one of your PF-Keys to that command.
O. |
|
Back to top |
|
|
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
I have alloacated to one of PF Key, after log off and log in, its not working |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
How did you define the PFkey? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
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 |
|
|
|