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
 

 

Formatting a output to required form using SAS/JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
LOKESH DAIVAM

New User


Joined: 22 Jul 2015
Posts: 4
Location: INDIA

PostPosted: Thu Aug 13, 2015 12:14 pm    Post subject: Formatting a output to required form using SAS/JCL
Reply with quote

Hi Team,

My current Output of a sas job :

Code:
BIT $ VALUES OF THE CYCLES 25 AND 26

Obs         CYCLE25    RECS

1       $400.00000     800


Obs         CYCLE26    RECS

1     $2,200.00000    2692


My required output :

Code:
BIT $ VALUES OF THE CYCLES 25 AND 26

CYCLE 25:    $400.00000
CYCLE 26:  $2,200.00000

How can i achieve the above result.Is it possible in sas to reformat the output like this?

Thanks in advance.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1767
Location: UK

PostPosted: Thu Aug 13, 2015 4:16 pm    Post subject:
Reply with quote

Please use the code tags when posting code and data. I will do it for you this time but in future...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8033
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 13, 2015 6:12 pm    Post subject:
Reply with quote

SAS can do many things -- look at PROC REPORT if you want to keep using a PROC. However, you would probably be better creating a single SAS data set with both values in it (named the same), then use a DATA step to PUT the data you want where you want. With a DATA step and PUT statements, you can literally control every byte of the entire page if you want.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm


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