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: 1845
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: 8132
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 Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 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 8 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


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