Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
converting date of pic value 9(8) into 9(9) comp-3

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

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 5:32 pm    Post subject: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

Hi,
Can anyone help me with the syntax for converting a date in format CCYYMMDD with the 'pic 9(8)' into 'pic 9(9) comp-3'. Date occurs in the header along with few other details before and after it. Its starting position is 27.
Back to top
View user's profile Send private message

expat

Global Moderator


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

PostPosted: Mon Jul 26, 2010 5:35 pm    Post subject:
Reply with quote

Syntax of what, COBOL, SORT, EASYTRIEVE, SAS, REXX, CLIST ............
Back to top
View user's profile Send private message
MJENNIE

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 5:55 pm    Post subject: Reply to: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

hi,
i need the syntax for jcl.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 26, 2010 6:02 pm    Post subject:
Reply with quote

expat wrote:
Syntax of what, COBOL, SORT, EASYTRIEVE, SAS, REXX, CLIST ............

How do you mean the syntax for JCL

The reason I asked my previous question, reiterated, is that the JCL needs to actually execute some program to perform the conversion, and until you tell us which program that you wish the JCL to execute there is no way on earth that we can give you any syntax whatsoever.

I think it must the Alice Cooper time of year again .................
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8344
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 26, 2010 6:05 pm    Post subject:
Reply with quote

Quote:
i need the syntax for jcl.
If this is what you need, be aware you have asked for the impossible. JCL does nothing but execute programs. It does not change data, it does not create data, all it does is execute programs. We need to know which program your JCL will be executing in order to provide you a meaningful answer.
Back to top
View user's profile Send private message
MJENNIE

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 6:37 pm    Post subject: Reply to: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

Am writting a JCL to add a header and trailer to a group of records in a file. The amended records are written onto another new file. My JCL does not execute anyother program.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 26, 2010 6:40 pm    Post subject:
Reply with quote

Please read, read again, and read again and again the response from both Robert and myself.

Keep reading and reading and reading until you understand what we are saying to you.

Please post your JCL for us to look at.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 26, 2010 8:57 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Quote:
My JCL does not execute anyother program.
You are in for a very long week. . . Yes, your jcl does execute a program or it would not run. . .

Look closely at your jcl for one or more lines that have EXEC PGM= coded.
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 converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us