LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2005, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 30 Dec 2005 16:16:08 -0500
Reply-To:     Michael Raithel <michaelraithel@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Michael Raithel <michaelraithel@WESTAT.COM>
Subject:      Re: Allocating a flat file to a tape  on MVS SAS
Content-Type: text/plain; charset="us-ascii"

Dear SAS-L-ers,

Monal posted the following:

> Yes Nat I know of that solution . > The thing is I can use entire SAS and create JCl and > write the entire JCL to another flat file and then > execute that new JCL.This is how I have been doing it > ,But that solution cannot work here. > > But the situation here what I am facing is that I > can't output in two steps. > Let me tell you what I am trying to do. > As you know from my thread that I was trying to > allocate a flat file to tape through SAS,the reason > why I was doing this was because I wanted to use SAS > macro variables in the filename statement. > Since this didn't work for me ,I am trying to use > those sas macro variables in the JCL something like > this: > > > //ZJOBJCL JOB (IBH), > // 'MONA', > // MSGCLASS=A,REGION=8M, > // CLASS=A, > // NOTIFY=&SYSUID > //STJCL JCLLIB ORDER=IBH.PROCLIB > //STEPBLD EXEC PGM=IEFBR14 > //STEPBLDS EXEC SAS, > // CONFIG='IBH.PRD.CONFIG(STGLIB)' > //SYSIN DD * > > SAS CODE Here which creates a set of macro variables > like > &var1 &var2... > > Now I want to use these &var1 &var2 below > > > //OUTO DD DISP=(NEW,CATLG,DELETE), > // DSN=IB.xxx.Z&VAR1.INPT.V001000.&VAR2, > // DCB=(RECFM=FB,LRECL=214,BLKSIZE=32742), > // LABEL=(1,SL,RETPD=365),UNIT=CARTE > > > Any clues how this can be done ... >

Monal, there are two ways that this can be done:

1. Enter the bizarro world from Superman comics where up is down, in is out, left is right, rich is poor, weak is strong, etc. There, what you suggest would be possible.

2. Bend the laws of the time/space continuum such that the impossible now becomes possible.

Other than that, and ignoring Nat's good suggestion to use the internal reader, what you propose to do, mix SAS macro code--which runs under SAS inside the JCL--with the JCL--which runs outside of SAS on z/OS--cannot be done.

Monal, best of luck to you in your quest to mix and match apples and bulldozers! ... and Happy New Year to you!

I hope that this suggestion proves helpful now, and in the future!

Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Michael A. Raithel "The man who wrote the book on performance" E-mail: MichaelRaithel@westat.com Author: Tuning SAS Applications in the MVS Environment Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=58172

Currently Writing: The Complete Guide to SAS Indexes (due February 28, 2006)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The first principle is that you must not fool yourself - and you are the easiest person to fool. - Richard Feynman +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Back to: Top of message | Previous page | Main SAS-L page