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
 

 

Inserting a line of text along with appending 2 datasets

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

New User


Joined: 26 Apr 2010
Posts: 74
Location: India

PostPosted: Fri Sep 10, 2010 2:02 pm    Post subject: Inserting a line of text along with appending 2 datasets
Reply with quote

Hello,

I am trying to append one dataset to another using IEBGENER.

Code:
//STEP020  EXEC PGM=IEBGENER                             
//SYSUT1   DD DSN=&&TEMPOUT,DISP=SHR                       
//         DD DSN=&&TEMPERR,DISP=SHR                       
//SYSUT2   DD DISP=(,PASS),DSN=&&FINALOUT,           
//            UNIT=SYSDA,                               
//            LABEL=RETPD=1,                           
//            SPACE=(80,(1,1),RLSE,,ROUND),AVGREC=K,   
//            LRECL=80,RECFM=FB,DSORG=PS               
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD DUMMY


But I want to insert a line of text before this appending happens. Is it possible ?

eg:-
FIle 1 contents
Inserted line of text
File 2 contents
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 10, 2010 2:06 pm    Post subject:
Reply with quote

Yes, of course it is

Please learn to use the code tags, as shown below. Your post has been amended.
Code:
 [code] your post goes here [/code]
Back to top
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 74
Location: India

PostPosted: Fri Sep 10, 2010 3:22 pm    Post subject:
Reply with quote

hi,

thanks i will take care of this..but how to a text line between file1 content and file2 content ?

eg:
File 1
-------
abcd

File 2
-------
defg

Text line - ghij

The output dataset should look like
abcd
ghij
defg
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: Fri Sep 10, 2010 3:34 pm    Post subject:
Reply with quote

Appu wrote:
hi,

thanks i will take care of this..but how to a text line between file1 content and file2 content ?

eg:
File 1
-------
abcd

File 2
-------
defg

Text line - ghij

The output dataset should look like
abcd
ghij
defg


The concept is known as concatenation:
Code:

//SYSUT1 DD DSN=FILE1,DISP=...
//       DD *
GHIJ
/*
//       DD DSN=FILE2,DISP=...
Back to top
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 74
Location: India

PostPosted: Fri Sep 10, 2010 4:26 pm    Post subject:
Reply with quote

Many thanks :-)
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 Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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