Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Align Output data written in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Align Output data written in a PDS
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: 1703
Location: Australia

PostPosted: Mon Sep 28, 2009 3:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us