Posted: Thu Jun 17, 2010 8:10 am Post subject: SAVE LIST in batch
Hi All,
We have the command SAVE LIST which we type on the command prompt and the list gets saved in the dataset USERID.LIST.DATASETS. Can we get the same list outputed to a file by running SAVE LIST command in batch. Basically I want to automate the prcoess.
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
Posted: Thu Jun 17, 2010 9:48 am Post subject:
Take a look at LMDLIST in the ISPF Services Manual. All will be revealed. _________________ If it's true that we are here to help others,
then what exactly are the others here for ?
In your code you have the command SAY - which means I have to input the dataset criteria , how can we do without any manual intervention. Can you help me the code which I can execute the REXX code in batch say I want the datasets matching YADAV.TEST.** in SAVE LIST.
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Thu Jun 17, 2010 12:11 pm Post subject:
Pass the key as an argument from your executing JCL, or read it in from a dataset. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Jun 17, 2010 12:18 pm Post subject:
yadav2005 wrote:
Kolusu,
In your code you have the command SAY - which means I have to input the dataset criteria , how can we do without any manual intervention. Can you help me the code which I can execute the REXX code in batch say I want the datasets matching YADAV.TEST.** in SAVE LIST.
yadav2005,
If you are not familiar with REXX then you are better off using ADRDSSU dump option with TYPRUN=NORUN which just lists the datasets that matched your criteria and then parse that output using sort like shown below.
The code did work fine in TEST environment but when I tried the same in PROD environment , even though there are datasets in 3.4 , the ADRDSSU utility did not bring
out any datasets in the list and I am sure there are datasets in 3.4 on PROD. Is that there could be shop restrictions for using ADRDSSU utility with TYPRUN=NORUN option.
and my job ends with RC=4 and I have output the temporary dataset to a file to show you the problem. Can you please help further.I am really surprised.
Code:
PAGE 0001 5695-DF175 DFSMSDSS V1R09.0 DATA SET SERVICES 2010.169 09:38
ADR031I (SCH)-PRIME(01), TYPRUN=NORUN REQUESTED. TASKS WILL EXECUTE IN NORUN MODE
DUMP /* COMMAND DUMP */ -
DS(INCL(YADAV.PROD.**)) /* INCLUDE ALL DSN WITH HLQ */ -
OUTDD(PSEUDO) /* OUT DD NAME */
ADR101I (R/I)-RI01 (01), TASKID 001 HAS BEEN ASSIGNED TO COMMAND 'DUMP '
ADR109I (R/I)-RI01 (01), 2010.169 09:38:32 INITIAL SCAN OF USER CONTROL STATEMENTS COMPLETED
ADR016I (001)-PRIME(01), RACF LOGGING OPTION IN EFFECT FOR THIS TASK
ADR006I (001)-STEND(01), 2010.169 09:38:32 EXECUTION BEGINS
ADR415W (001)-DTDSC(04), NO DATA SETS WERE COPIED, DUMPED, OR RESTORED FROM ANY VOLUME
ADR040I (001)-DTDSC(01), PROCESSING BYPASSED DUE TO NORUN OPTION
ADR006I (001)-STEND(02), 2010.169 09:38:33 EXECUTION ENDS
ADR013I (001)-CLTSK(01), 2010.169 09:38:33 TASK COMPLETED WITH RETURN CODE 0004
ADR012I (SCH)-DSSU (01), 2010.169 09:38:33 DFSMSDSS PROCESSING COMPLETE. HIGHEST RETURN CODE IS 0004 FROM:
TASK 001
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Jun 18, 2010 10:41 am Post subject:
Quote:
ADR415W (001)-DTDSC(04), NO DATA SETS WERE COPIED, DUMPED, OR RESTORED FROM ANY VOLUME
yadav2005,
The message ADR415W is self explanatory. There are no matching datasets with that high level qualifier. Are you sure you have datasets starts with YADAV.PROD.*? Also are you authorized to run this in production?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum