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
 

 

CONVERT SYSIN TO A DATASET

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
joe12613
Warnings : 1

New User


Joined: 18 Aug 2005
Posts: 2

PostPosted: Sat Sep 05, 2009 1:17 am    Post subject: CONVERT SYSIN TO A DATASET
Reply with quote

Hi
I would like to know whether it is possible to convert SYSIN data to dataset and execute the JOB. Ex


Code:

//STEP0200 EXEC  PGM=SORT                                 
//SYSOUT   DD  SYSOUT=*                                   
//SYSUDUMP DD SYSOUT=*                                     
//SORTIN   DD DSN=@PLIN42.TEST.FILE1,DISP=SHR             
//SORTOUT  DD DSN=@PLIN42.TEST.OFILE1,                     
//            DISP=(,CATLG),SPACE=(TRK,(5,1),RLSE),UNIT=D,
//            DCB=(LRECL=10,BLKSIZE=0,RECFM=FB)           
//SYSIN    DD    *                                         
 OPTION COPY                                               
 INREC FIELDS=(1,3,5,2)                                   
//*         
 


From the above Jcl , I wanted to convert SYSIN parameter(OPTION COPY AND INREC FIELDS=(1,3,5,2) to dataset or a contorl card and execute the same JCL. Will it possible ? icon_rolleyes.gif

Any help would be appreciated
Thanks
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Sep 05, 2009 1:32 am    Post subject:
Reply with quote

Yes, just put it in a dataset or pds member with a lrecl=80 and change the "//sysin dd *" to "//sysin dd dsn=dataset,disp=shr".
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Sat Sep 05, 2009 11:34 am    Post subject:
Reply with quote

Probably its time for you to learn basics of JCL.

Give a hit to Manuals tab and go through JCL manuals.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Sat Sep 05, 2009 2:42 pm    Post subject:
Reply with quote

This is an online-interactive-web-enabled-IBM-JCL Course - on an IBM website, hosted, sponsered and maintained by IBM.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Sun Sep 06, 2009 12:57 am    Post subject:
Reply with quote

you can do that , this increase the performance of the job as u need not to change the job, you can just change the member name and things will be more simpler, in good practices its recommended to pass by member
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Sun Sep 06, 2009 2:56 pm    Post subject:
Reply with quote

Hi

what exactly does this mean, how does it increase the performance of the job ?

Quote:
this increase the performance of the job as u need not to change the job, you can just change the member name and things will be more simpler


Gerry
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Sun Sep 06, 2009 8:40 pm    Post subject:
Reply with quote

Hi Gerry ,
Performance in terms of its increases the modularity of the job and hence resulting in more flexible to change and and test.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Sun Sep 06, 2009 10:27 pm    Post subject:
Reply with quote

Quote:
increases the modularity of the job and hence resulting in more flexible to change and and test.

I guess that doesn't termed as Performance
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Mon Sep 07, 2009 12:07 am    Post subject:
Reply with quote

Ketan Varhade wrote:
Hi Gerry ,
Performance in terms of its increases the modularity of the job and hence resulting in more flexible to change and and test.


What a (expletive deleted) load of bullthis. More flexible to change? You still have to change the member that contains the sort statement, either its name in the JCL or its contents, so it actually makes things more difficult.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon Sep 07, 2009 7:19 am    Post subject: Reply to: CONVERT SYSIN TO A DATASET
Reply with quote

This definition of performing better (easier to use by a wide range of users in varied situations) is satisfied well if the step is made into a proc. Then the user simply overrides the SYSIN statement, and possibly other statements, with inline data or a data set. That is the whole reason for procs. So it is half right.
Back to top
View user's profile Send private message
joe12613
Warnings : 1

New User


Joined: 18 Aug 2005
Posts: 2

PostPosted: Sun Sep 13, 2009 5:55 am    Post subject:
Reply with quote

Thanks to eveybody!
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


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