MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

In output each ds name to be displayed in next line - REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
mrgthiru
Beginner


Joined: 16 Jan 2007
Posts: 6
Topics: 2
Location: INDIA

PostPosted: Wed Jan 17, 2007 10:39 am    Post subject: In output each ds name to be displayed in next line - REXX Reply with quote

Hi all,

Here is a program that displays the DATASETS for a particular HLQ, but the output it is displaying in continious form... I found this pgm in a website and did some modifications...
Can any one give me a solution to display the output one after another...

[code:1:93fa61a8bf]/* REXX */
/*TRACE I*/
SAY "ENTER HLQ"
PARSE UPPER PULL HLQ
/* ARG MEMLIST HLQ .*/
IF HLQ="" THEN DO
HLQ=MEMLIST ; MEMLIST="*"
END

UPPER HLQ
HLQ=STRIP(STRIP(HLQ,"T","*"),"T",".") /* HANDLE ISPF 3.4 FORMAT */

DUMMY = OUTTRAP("LISTCAT.","*")
"LISTCAT LEVEL("HLQ")"
LISTCATRC=RC
DUMMY = OUTTRAP("OFF")

IF LISTCATRC
_________________
My blood says B+ Smile
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Jan 17, 2007 2:11 pm    Post subject: Reply with quote

After the SAY instruction, you can add PULL DUMMY.

O.
________
Subaru EA engine history


Last edited by ofer71 on Sat Feb 05, 2011 11:56 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Jan 17, 2007 2:41 pm    Post subject: Reply with quote

Code:
PDSLIST=PDSLIST WORD(LISTCAT.N,3)

is creating one long string. If you want individual lines, Say each one individually
Back to top
View user's profile Send private message Visit poster's website
mrgthiru
Beginner


Joined: 16 Jan 2007
Posts: 6
Topics: 2
Location: INDIA

PostPosted: Thu Jan 18, 2007 8:32 am    Post subject: Reply with quote

Hi

PULL DUMMY is not giving the expected output, O...
Still iam working on it...

Thanks & Regards
Gthiru Rolling Eyes
_________________
My blood says B+ Smile
Back to top
View user's profile Send private message
mrgthiru
Beginner


Joined: 16 Jan 2007
Posts: 6
Topics: 2
Location: INDIA

PostPosted: Fri Jan 19, 2007 2:15 am    Post subject: Reply with quote

Hi,

Got a solution for the program, from my mentor...
[code:1:37dee0d2d7]
/* REXX */
/*TRACE I*/
SAY "ENTER HLQ"
PARSE UPPER PULL HLQ
IF HLQ="" THEN DO
HLQ=MEMLIST ; MEMLIST="*"
END
UPPER HLQ
HLQ=STRIP(STRIP(HLQ,"T","*"),"T",".") /* HANDLE ISPF 3.4 FORMAT */
DUMMY = OUTTRAP("LISTCAT.","*")
"LISTCAT LEVEL("HLQ")"
LISTCATRC=RC
IF LISTCATRC
_________________
My blood says B+ Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group