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
 

 

Need help in overlay copy

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

New User


Joined: 12 Jan 2013
Posts: 28
Location: India

PostPosted: Tue Jul 23, 2013 6:35 pm    Post subject: Need help in overlay copy
Reply with quote

Hi,

I have the input file as below.

Code:

Code:
DEP100 REC AA100 
DEP101 ERR AARRR   
DEP102 REC AA200




In the above input file, if position (8:3) = REC, then copy (1:6) from input file to (18:6) in output file as shown below. Is there any way to achieve this in JCL sort?


Code:

Code:
DEP100 REC AA100 DEP100
DEP101 ERR AARRR   
DEP102 REC AA200 DEP102




Thanks,
Senthil[/img]
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Tue Jul 23, 2013 6:39 pm    Post subject:
Reply with quote

You can achieve this using the 'IFTHEN' parameter.

Search the forum and you will find lot of working examples.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1714
Location: UK

PostPosted: Tue Jul 23, 2013 7:09 pm    Post subject:
Reply with quote

What do you mean by 'JCL sort'? I know of no sort product called JCL and if the other interpretation of 'JCL sort' is 'sorting JCL' how do you expect that to do what you want?
Back to top
View user's profile Send private message
SENTHIL MURUGAAN
Warnings : 1

New User


Joined: 12 Jan 2013
Posts: 28
Location: India

PostPosted: Tue Jul 23, 2013 8:37 pm    Post subject: Reply to: Need help in overlay copy
Reply with quote

Hi Nic,

I was referring to Sort card in JCL and to say in short I stated as JCL sort and working with IFTHEN syntax as suggested by Arun. Thanks

Thanks,
Senthil
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1714
Location: UK

PostPosted: Tue Jul 23, 2013 9:33 pm    Post subject:
Reply with quote

Sort card and JCL are NOT the same thing - JCL is JCL, sort cards are conrol cards for the sort program which may, or may not, be invoked directly from JCL. Do not mix them up. JCL 'cards' will be found in the JCL Language reference manual, sort control cards in the sort reference manual.
Back to top
View user's profile Send private message
SENTHIL MURUGAAN
Warnings : 1

New User


Joined: 12 Jan 2013
Posts: 28
Location: India

PostPosted: Tue Jul 23, 2013 10:49 pm    Post subject: Need help for overlay copy
Reply with quote

I got the solution for IFTHEN syntax thanks

Thanks,
Senthil
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Wed Jul 24, 2013 7:39 am    Post subject:
Reply with quote

Senthil

Good that you worked it out by yourself. Btw as Nic suggested terminology is really important and we should be clear with that especially while asking questions.
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 syncsort: copy lines after the keyword shreya19 SYNCSORT 6 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


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