View previous topic :: View next topic |
Author |
Message |
mrgthiru Beginner
Joined: 16 Jan 2007 Posts: 6 Topics: 2 Location: INDIA
|
Posted: Wed Jan 17, 2007 10:39 am Post subject: In output each ds name to be displayed in next line - REXX |
|
|
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+ |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Wed Jan 17, 2007 2:11 pm Post subject: |
|
|
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 |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Jan 17, 2007 2:41 pm Post subject: |
|
|
Code: | PDSLIST=PDSLIST WORD(LISTCAT.N,3) |
is creating one long string. If you want individual lines, Say each one individually |
|
Back to top |
|
|
mrgthiru Beginner
Joined: 16 Jan 2007 Posts: 6 Topics: 2 Location: INDIA
|
Posted: Thu Jan 18, 2007 8:32 am Post subject: |
|
|
Hi
PULL DUMMY is not giving the expected output, O...
Still iam working on it...
Thanks & Regards
Gthiru _________________ My blood says B+ |
|
Back to top |
|
|
mrgthiru Beginner
Joined: 16 Jan 2007 Posts: 6 Topics: 2 Location: INDIA
|
Posted: Fri Jan 19, 2007 2:15 am Post subject: |
|
|
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+ |
|
Back to top |
|
|
|
|