Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us