Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : Q. If there is a situation, where we need to code more than 255 steps in a JOB? A. We need to split jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


How to copy a file by inserting quotes?

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
Divya
Member


Joined: 13 Jan 2007
Posts: 2

PostPosted: Sat Jan 13, 2007 1:18 pm    Post subject: How to copy a file by inserting quotes? Reply with quote

I want to copy a sequential file which has all the text fields and the all fields in this file are seperated by commas. My requirement is to copy the same file into other file by adding a single quote around all the text fields (I do not want to delete the existing commas)? Please advise me, thru which jcl utility I can do this and how?
Back to top
View user's profile Send private message

Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 511
Location: San Jose, CA

PostPosted: Sat Jan 13, 2007 10:24 pm    Post subject: Reply with quote

It's not clear what you want to do so you need to answer some questions to clarify things.

I assume you have input records something like this:

text1,text2,text3

Do you want the output to be:

'text1','text2','text3'

or

'text1,text2,text3'

Can some of the text fields have embedded blanks? For example:

John Doe,San Jose,California

What is the maximum length for a text field?

Please show an example of your input records and what you want for output. Also, what is the RECFM and LRECL of your input file?
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts patching a file 3 devmain 3155 Sat Jan 30, 2010 6:48 pm
Anuj Dhawan View latest post
No new posts Reg: DDIO file in XPED 4 simha 7109 Wed Nov 26, 2008 1:29 pm
Anuj Dhawan View latest post
No new posts REMOVE HIGH VALUE FROM THE EXTRACT FILE 2 Guest 3046 Fri May 09, 2008 11:04 am
Krishna View latest post
No new posts SELECT clause for Flat / ESDS file. 2 rangab 3696 Sat Mar 22, 2008 1:46 pm
sai View latest post
No new posts SPLIT FILE 3 pkaushi 21647 Thu Feb 23, 2006 1:30 am
pzmohanty View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB