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

Align Output data written in a PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Mon Sep 28, 2009 3:32 pm
Reply with quote

I used following REXX code to write in a member of a PDS for the required details,

Code:
user = Userid()                                           
mydsn = "'DE00.TEST.PDS.IDS("user")'"               
"ALLOC DD(PDSID) DA("mydsn") SHR REUSE"                   
If SYSDSN(mydsn) = "OK" Then "EXECIO * DISKR PDSID (FINIS"
Queue user  member '  ' date() '' time()     
"EXECIO "Queued()" DISKW PDSID (FINIS"                   
"FREE DD(PDSID)"                                         


The output is,
Code:
<MYID>  JOBNAME1    22 Apr 2009  02:44:19
<MYID>  PRCNM    22 Apr 2009  02:44:24


As such the output data is not aligned exactly below the previous record (as date and time are not aligned exactly below one another) because of the difference in length of the output data elements (as JOBNAME1 and PRCNAME).

Is there any way to structure the output data so that the output could be as follows,
Code:
<MYID>  JOBNAME1    22 Apr 2009  02:44:19
<MYID>  PRCNM       22 Apr 2009  02:44:24
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Sep 28, 2009 3:40 pm
Reply with quote

Hi,

look at the LEFT function.


Gerry
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top