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
 

 

How to write record into data set just by JCL?

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

New User


Joined: 24 May 2005
Posts: 2

PostPosted: Thu Apr 06, 2006 6:41 pm    Post subject: How to write record into data set just by JCL?
Reply with quote

I want to just use JCL to write a record into a new data set. There is no input file, just an output file. Is there some utility I can use ? " )

Thanks & Best regards,
Ban
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 06, 2006 8:19 pm    Post subject: Re: How to write record into data set just by JCL?
Reply with quote

IEBGENER, SORT, IDCAMS (REPRO), and others.
Back to top
View user's profile Send private message
Ban

New User


Joined: 24 May 2005
Posts: 2

PostPosted: Thu Apr 06, 2006 8:38 pm    Post subject:
Reply with quote

Hi superk,
Accturally, I have tried SORT
SYSIN *

SORT FIELD=COPY
OUTREC FIELD=(1:C'GEFT')
END

But the file is empty. So can you give me a example of such a utility?

Thanks a lot. " )
Ban
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Apr 06, 2006 8:41 pm    Post subject:
Reply with quote

You can do it with DFSORT. For example, if your output file has RECFM=FB and LRECL=100, you can use a DFSORT job like this:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
data
/*
//SORTOUT DD DSN=...   output file (FB/100)
//SYSIN DD *
   OPTION COPY
   OUTREC FIELDS=(1,80,100:X)
/*


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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