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: 1715
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: 7913
Location: Bellevue, IA

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 Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm


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