Page 1 of 1

JCL Convert date PD --> Julian

PostPosted: Mon Sep 09, 2019 2:15 pm
by Yashashri
Please find my requirement below
1. I want to take Current GDG as input which has date which is in PD format. When I view that file it shows date in HEX format.
2. Same date I want to convert it into Julian format
3. I want to write Input date in output file. Julian and Gregorian format.
Need help.

Re: JCL Convert date PD --> Julian

PostPosted: Mon Sep 09, 2019 5:03 pm
by steve-myers
  1. The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.
  2. Just exactly what do you mean by "Julian date." The yyddd or cyyddd date used in the operating system is not a Julian date, and never was a Julian date, though it was improperly called a Julian date in the past.
  3. Only a program can manipulate or process data. Period. End of story.

Re: JCL Convert date PD --> Julian

PostPosted: Mon Sep 09, 2019 5:33 pm
by Yashashri
Can we do it using SORT ?

Re: JCL Convert date PD --> Julian

PostPosted: Mon Sep 09, 2019 6:41 pm
by enrico-sorichetti
here is a link to DFsort manuals, staring from
https://www.ibm.com/support/pages/dfsort
and proceeding to
https://www.ibm.com/support/pages/dfsor ... ons#ZOSREF
probably not the latest ones but more than enough for the TS needs

here are two papers that provide more hints

DFSORT: Beyond Sorting
https://www.ibm.com/support/pages/beyon ... r-sortbynd

Smart DFSORT Tricks
https://www.ibm.com/support/pages/smart-dfsort-tricks

Re: JCL Convert date PD --> Julian

PostPosted: Mon Sep 09, 2019 11:02 pm
by sergeyken
steve-myers wrote:
  1. The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.


Real recommendations on answering interview questions for JCL positions
2) Explain what is the use of JCL?

•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data

:mrgreen:

Re: JCL Convert date PD --> Julian

PostPosted: Tue Sep 10, 2019 5:49 am
by steve-myers
sergeyken wrote:
2) Explain what is the use of JCL?

•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data

Who came up with some of these "uses?"
  • JCL can delete data sets. No argument. JCL can allocate space for data sets and data sets that are members of a GDG. JCL cannot create a GDG index. JCL cannot store data in a data set; it can direct the system to run a program that stores data in a data set.
  • JCL can direct the system to run a program that compares the contents of a data set and the contents of another data set. Comparing the contents of data sets is done only by a program.
  • JCL does not compile anything. It directs the system to run a program that compiles other programs, as well as a program that prepares the binary output of a program that compiles a program so it can be executed by the sysyem.
  • JCL directs the system to run programs that merge or sort data.
In other words, about all that JCL actually does in Sergeyken's list is delete data sets

Re: JCL Convert date PD --> Julian

PostPosted: Tue Sep 10, 2019 8:59 pm
by NicC
I like to think of JCL as a memo from me to the operating system requesting the operating system to carry out some tasks, listing the resources needed to carry out the task. So JCL asks for something to be done - it does not do it itself.