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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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